-
20 Dec 2012 9:10 AM #1
Unanswered: Measure a Width with ExtJS
Unanswered: Measure a Width with ExtJS
Hi,
how can i do for measure a width of a string value with ExtJs?
I need compare the width a column with the width a data(string...).
Ex:
Code:var getWidthString = function (grid, dataName) { var widthColumn = grid.columns[0].width; var witdhName = dataName.width(someone component Ext to make this?) if (widthColumn > witdhName ) { return 1; } else { return 2; } }
-
21 Dec 2012 12:09 AM #2
Yes there is, take a look at the following link:
http://docs.sencha.com/ext-js/4-1/#!...method-measure
-
21 Dec 2012 2:56 AM #3


Reply With Quote