-
2 Aug 2012 11:28 AM #1
Border layout is broken when resize window
Border layout is broken when resize window
REQUIRED INFORMATION
Ext version tested:- Ext 4.1.1
- IE8
- FF 14.0.1 (firebug 1.10.0.1 installed)
- Chrome 13
- HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"
- Border layout is broken when resizing window. Minimum width for center region is not taken in affect on resizing window.
- Create window widget
- Add two regions: center and east
- Specify minWidth for center region
- Specify maxWidth for east region
- Resize window - make smaller width
- Center region width equals to minWidth|window width
- East region has smaller width
- Layout is broken
- Center region width is incorrectly affected by minWidth configuration
HELPFUL INFORMATIONCode:Ext.onReady(function(){ Ext.create('Ext.Window', { title: 'Bottom Header', width: 500, height: 350, headerPosition: 'bottom', layout: { type: 'border' }, items: [{ region: 'center', minWidth: 150, style: 'text-align: center', html: 'CENTER REGION', dockedItems: [{ xtype: 'toolbar', dock: 'bottom', items: [{ text: 'First' },{ text: 'Second' },{ text: 'Third' },{ text: 'Fourth' }] }] },{ region: 'east', collapsible: true, width: 200, maxWidth: 200, split: true, style: 'text-align: right', html: 'RIGHT REGION' }] }).show(); });
Screenshot or Video: Debugging already done:- none
- not provided
- only default ext-all.css
- Win7
- WinXP Pro
-
2 Aug 2012 1:46 PM #2
This isn't a bug. From the docs:
If you want to restrict the size, you should place the minWidth on the window itself.Any Container using the Border layout must have a child item with region:'center'. The child item in the center region will always be resized to fill the remaining space not used by the other regions in the layout.Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
2 Aug 2012 11:34 PM #3
Ok. Thank you for answer.
In fact, I was expecting such response and have specified size constraints for components beforehand.
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote