phamtranquocviet
1 Apr 2012, 12:26 PM
Hi,
I have a tab panel (Ext.panel.Panel), which has a table layout. Each row has three cells. Each cell takes 1/3 of the tab's width. When the browser resizes, I resize the width of each cell like below but firebug shows that the cells always keep the initial width. Am I missing something? And is this the right way control sizes in a table layout?
....
resizeGrids: function(aclTab, width, height, opts) {
var grids;
aclTab.getLayout().tdAttrs = {width: width/3};
},
.....
I have a tab panel (Ext.panel.Panel), which has a table layout. Each row has three cells. Each cell takes 1/3 of the tab's width. When the browser resizes, I resize the width of each cell like below but firebug shows that the cells always keep the initial width. Am I missing something? And is this the right way control sizes in a table layout?
....
resizeGrids: function(aclTab, width, height, opts) {
var grids;
aclTab.getLayout().tdAttrs = {width: width/3};
},
.....