PDA

View Full Version : [OPEN] Ext.Button -> height config



tobiu
16 Oct 2011, 10:28 AM
hi team,

this works for sheets & toolbars, but when you have a vbox layout containing hbox layouts with buttons, the buttons get flexed vertically instead of the containers and the height does not get applied at all.

this worked fine in ST 1.



layout : {
type : 'vbox',
pack : 'center',
align : 'stretch'
},
defaults: {
layout: {
type: 'hbox'
},
flex: 1,
defaults : {
xtype : 'button',
baseCls : 'x-button',
flex : 1,
height : '3.3em',
iconAlign : 'top',
iconMask : true,
style : 'margin : .3em; padding: .4em;',
ui : 'round'
}
},
items : [{
items : [{
action : 'showNewsView',
iconCls : 'chat',
text : 'News'
},...


drop me an email / pm for a demo usecase if needed.

rdougan
23 Jan 2012, 4:54 PM
Is this now how it should look?

http://f.cl.ly/items/3B3U082Z262r2g0p3v0n/Screen%20Shot%202012-01-23%20at%204.53.08%20PM.png

Looks correct from reading the code.