12 Mar 2012 11:45 AM #1
Answered: How to layout 100% width searchfield + button in toolbar?
I want to put a Button and a SearchField inside a Toolbar. The Button should go to the right and the SearchBar should fill the remaining space. How to layout this?
This is what i got by now:
Bildschirmfoto 2012-03-12 um 20.41.13.jpg
If I set the SearchField width to "100%", the Button gets hidden.
Toolbar uses hbox layout so if you set flex : 1 on the search field it should extend out but still let the button have some space.
12 Mar 2012 2:27 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Toolbar uses hbox layout so if you set flex : 1 on the search field it should extend out but still let the button have some space.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
13 Mar 2012 12:58 AM #3
Works, great! Thx a lot Mitchell!