-
22 Aug 2012 7:08 AM #1
ext js 4.1.1 ga - Problems with Grid forcefit=true attribute
ext js 4.1.1 ga - Problems with Grid forcefit=true attribute
when " forcefit=true" option on grid is set - grid must re size columns to fit on whole grid width. But if you resize coulmns -you will se that heder column reseize, but all other columns - not.
This is my iplementation on " forcefit=true"
this.on('boxready',this.boxready);
.....
boxready:function(grid,width,height){
var columns = grid.getView().getHeaderCt().getGridColumns(),
count = columns.length,
column,
columnsWidth = 0,
prop = 0;
for (var index=0;index<count;index++){
column = columns[index];
columnsWidth = columnsWidth + (column.hidden ? 0 : column.width);
}
prop = (width-20)/columnsWidth;
for (var index=0;index<count;index++){
column = columns[index];
column.width = parseInt(column.width * prop);
}
grid.doLayout();
}
-
22 Aug 2012 7:11 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 434
Can I get a test case? I just tried a simple example and on Chrome and Firefox it is working as expected with 4.1.1
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
6 Mar 2013 10:36 AM #3
I think the OP is having the same issue as what I've reported in this ticket:
http://www.sencha.com/forum/showthre...esize&p=944853
In case it was different so as not to hijack this report I've filed it separately
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote