In one ext3 application of mine i'm using these parameters for GridView:
autoFill: true, //makes all columns together as wide as the hole table forceFit: true, //makes all columns together as wide as the hole table scrollOffset: 0 //removes the space reserved for the scrollbar when there is no scrollbar
unfort开发者_运维知识库unately i can't find them (or anything equivalent in ext4 anymore). Does anyone knows how these propertys has been replaced in the new Ext.grid.View?
In ExtJS4, the columns are laid out using Ext.layout.container.HBox layout.
So,
autoFill: true
- You don't need this as long as you haveflex:1
for at least one of the column configurationsforceFit: true
not required (you will see a horizontal scroll bar below your grid if you specify absolutewidth
for columns that together exceeds the total grid width. But this was true for v3 as well.- You don't need
scrollOffset:0
anymore. This happens automagically now.
精彩评论