开发者

Ext.grid.View lost configurationOptions in ext 4 (autoFill)

开发者 https://www.devze.com 2023-03-08 14:13 出处:网络
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

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 have flex:1 for at least one of the column configurations
  • forceFit: true not required (you will see a horizontal scroll bar below your grid if you specify absolute width 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.
0

精彩评论

暂无评论...
验证码 换一张
取 消