-
15 Oct 2012 2:13 AM #1
Ext.toolbar.Toolbar Wrong top-offset with hidden child items
Ext.toolbar.Toolbar Wrong top-offset with hidden child items
REQUIRED INFORMATION
Ext version tested:- Ext 4.1.2
- Chrome Version 22
- Firefox Version 15.0.1
- HTML 5
- Ext.toolbar.Toolbar - the toolbars top-offset has a wrong value if the toolbars items are hidden
- create a toolbar with a hidden item
- the toolbar is completely visible
- the toolbars bottom border is not visible (wrong top-offset)
HELPFUL INFORMATIONCode:Ext.create('Ext.container.Container', { layout : { type : 'hbox', align : 'stretch' }, items : [ // this panel will be rendered with an empty bottom-toolbar. { xtype : 'panel', title : 'Title', html : 'panel content', bbar : [] }, // this panel will be rendered with bottom-toolbar containing // a hidden button with a top-offset increased by the toolbars height. { xtype : 'panel', title : 'Title', html : 'panel content', bbar : [{text : 'click', hidden: true}] } ], renderTo: Ext.getBody() });
Screenshot or Video:- attached
Debugging already done:- none
- not provided
- only default ext-all.css
- Win 7
-
15 Oct 2012 2:36 AM #2
If you want to enforce a height, use the height config:
Code:Ext.onReady(function() { Ext.create('Ext.container.Container', { layout: { type: 'hbox', align: 'stretch' }, items: [{ xtype: 'panel', title: 'Title', html: 'panel content', bbar: { height: 22 } }, { xtype: 'panel', title: 'Title', html: 'panel content', bbar: { height: 22, items: [{ text: 'click', hidden: true }] } }], renderTo: Ext.getBody() }); });Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
15 Oct 2012 2:57 AM #3
well, then there is still no bottom border visible ...
-
15 Oct 2012 3:22 AM #4
Could well be your custom CSS, what happens if you run it with ext-all.css?
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