Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 extjs 锁定网格中调整列的宽度?
如果在列上设置 flex 配置,extjs 会抛出一个错误,说锁定网格列不能指定 flex 值。网格面板具有layout:'fit'配置集。
layout:'fit'
看起来至少在 ExtJs 5.1.1 中你只需要指定lockedGrid 自己的弹性:
xtype: 'gridpanel', enableLocking: true, layout: 'border', split: true, lockedGridConfig: { emptyText: '', collapsible: false, //forceFit: true,//<-this doesn't work flex: 1/4 },