PDA

View Full Version : how to , segmentedbutton filling 90% oF width



mr.xprt
22 Apr 2011, 10:04 AM
Hi,

am trying to use segmentedbutton on a tollbar, so it looks like that img:

https://lh4.googleusercontent.com/_VchlsZcdk48/TbHCsgwoglI/AAAAAAAAEqA/MVNaHQ6jiA0/ordinary.png

but i want to extend this segmentedbutton to fill 90% of the toolbar linke
https://lh3.googleusercontent.com/_VchlsZcdk48/TbHCsqJv1tI/AAAAAAAAEp8/WHC4beE1FS4/extendsed.png

note: second img modified using photoshop ,

thanks

steve1964
22 Apr 2011, 2:46 PM
Try to set width: '30%' on every button...

tomalex0
23 Apr 2011, 11:51 AM
Try this


xtype : 'segmentedbutton',
defaults: {
flex: 1
},
style: 'width: 90%',