Created
January 21, 2014 10:40
-
-
Save mrkodssldrf/8537827 to your computer and use it in GitHub Desktop.
Workaround for ExtJS / Sencha Touch 2 to calculate Percentage instead of using css3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Normally you would calculate with css3 | |
style="width: calc((value/amount) * 100%);" | |
// With ExtJS - in order to build a native app - you have to use this workaround | |
style="width: {[(values.value/values.amount) * 100]}%;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment