-
10 Sep 2012 4:05 AM #1
Auto width and bottom toolbar conflicts
Auto width and bottom toolbar conflicts
Ext version tested:
- Ext 4.0.7
- Chrome 21
- Ext.toolbat.ToolBar : bottom toolbar hides when panel sit to auto width
- Describe the problem in greater detail here, summarizing the behavior.
- Panel with border layout contains top toolbar and a center panel and a south panel
- The center panel contains a bottom (dock: bottom) toolbar
- When main Panel sit to auto width, the bottom toolbar in the center panel hides!!
- the bottom toolbar must be shown!
- the bottom toolbar hid when sit main panel to auto width
Code:Ext.define('MyApp.view.MyPanel', { extend: 'Ext.panel.Panel', height: 250, id: 'Main', //width: 400, layout: { type: 'border' }, title: 'My Panel', initComponent: function() { var me = this; Ext.applyIf(me, { dockedItems: [ { xtype: 'toolbar', dock: 'top', items: [ { xtype: 'button', id: 'btn', text: 'MyButton' } ] } ], items: [ { xtype: 'panel', region: 'center', id: "center", title: 'My Panel', dockedItems: [ { xtype: 'toolbar', dock: 'bottom', items: [ { xtype: 'button', text: 'MyButton' } ] } ] }, { xtype: 'panel', region: 'south', height: 50, hidden: true, id: 'south', title: 'My Panel' } ] }); me.callParent(arguments); } });
-
10 Sep 2012 4:08 AM #2
This is already resolved in the latest release, there were a whole bunch of layout improvements in 4.1.x. Marking as closed.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote