-
21 Mar 2011 3:39 AM #1
[CLOSED][PR5] Panel(+regions) and fieldset with anchor 100% - fail
[CLOSED][PR5] Panel(+regions) and fieldset with anchor 100% - fail
My code:
When load - all very good.PHP Code:Ext.create('Ext.Window', {
width: 400,
height: 300,
title: 'Window',
layout: 'fit',
modal: true,
items: [{
xtype: 'panel',
layout: 'border',
border: false,
items: [{
region: 'center',
collapsible: false,
border: false,
bodyPadding: 5,
items: [{
xtype: 'fieldset',
title: 'Bad Fieldset',
layout: 'anchor',
items: [{
xtype: 'textfield',
fieldLabel: 'Field',
anchor: '100%'
}],
}, {
xtype: 'fieldset',
title: 'God Fieldset',
layout: 'anchor',
items: [{
xtype: 'textfield',
fieldLabel: 'Field',
anchor: '85%'
}],
}, {
xtype: 'fieldset',
title: 'Good Fieldset',
layout: 'anchor',
items: [{
xtype: 'textfield',
fieldLabel: 'Field',
}],
}],
}, {
collapsible: true,
title: 'East',
region: 'east',
width: '30%',
html: 'East'
}],
}],
}).show();
But if you hide and show the east, then east to the region will hide part of the central region.
Tested at Browser:- Google Chrome 10.0.648.151 - FAIL
- Firefox 3.6.15 - FAIL
- IE 8.0.7601.17514 - good
load.png
Then hide east region:
hide.png
Then show east region - FAIL
show.pngLast edited by Lord Micro; 21 Mar 2011 at 5:58 AM. Reason: close, no problem
-
21 Mar 2011 3:47 AM #2
Center has no layout:
Also note % widths aren't supported.Code:Ext.onReady(function(){ Ext.create('Ext.Window', { width: 400, height: 300, title: 'Window', layout: 'fit', modal: true, items: [{ xtype: 'panel', layout: 'border', border: false, items: [{ flex: 7, region: 'center', collapsible: false, border: false, bodyPadding: 5, layout: 'anchor', items: [{ xtype: 'fieldset', title: 'Bad Fieldset', layout: 'anchor', items: [{ xtype: 'textfield', fieldLabel: 'Field', anchor: '100%' }], }, { xtype: 'fieldset', title: 'God Fieldset', layout: 'anchor', items: [{ xtype: 'textfield', fieldLabel: 'Field', anchor: '85%' }], }, { xtype: 'fieldset', title: 'Good Fieldset', layout: 'anchor', items: [{ xtype: 'textfield', fieldLabel: 'Field', }], }], }, { collapsible: true, title: 'East', region: 'east', flex: 3, html: 'East' }], }], }).show(); });Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
23 Mar 2011 4:26 AM #3
Your code does not work in FireFox 4, but works fine in Google Chrome. How do I fix this?
Similar Threads
-
[CLOSED][3.0.0][IE6 and IE7] Scroll bug with Panel inside a FieldSet in an Ext.Window
By mono blaine in forum Ext 3.x: BugsReplies: 4Last Post: 9 Aug 2009, 2:51 PM -
[CLOSED][3.0.0] HtmlEditor in a panel with anchor layout problem [IE7]
By mono blaine in forum Ext 3.x: BugsReplies: 9Last Post: 20 Jul 2009, 4:43 AM -
[OPEN] [CLOSED][3.0RC2] scrollbars on panel cover panel contents with anchor layout
By campersau1 in forum Ext 3.x: BugsReplies: 1Last Post: 30 Jun 2009, 2:27 PM -
[2.1][CLOSED] Anchor on fieldset removes bottom padding
By mprice in forum Ext 2.x: BugsReplies: 7Last Post: 4 Jun 2008, 3:44 AM


Reply With Quote