-
28 Dec 2012 9:00 PM #1
Answered: Overriding TitleBar/Toolbar default heights
Answered: Overriding TitleBar/Toolbar default heights
I noticed the following in the release notes for Sencha Touch 2.1.0-b2: "TitleBar/Toolbar now have default height instead of pure CSS." A couple questions:
- Why was the decision made to hard-code the TitleBar.height and Toolbar.minHeight?
- Is there a way to override these default values on a project-wide basis?
Any guidance/insight would be much appreciated!
-
Best Answer Posted by mitchellsimoensCode:
Ext.define('Override.Toolbar', { override : 'Ext.Toolbar', config : { minHeight : '2.2em' } }); Ext.define('Override.TitleBar', { override : 'Ext.TitleBar', config : { height : '2.2em' } });
-
30 Dec 2012 9:06 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
- Answers
- 3108
Code:Ext.define('Override.Toolbar', { override : 'Ext.Toolbar', config : { minHeight : '2.2em' } }); Ext.define('Override.TitleBar', { override : 'Ext.TitleBar', config : { height : '2.2em' } });Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
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 services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
30 Dec 2012 10:06 PM #3
Awesome! Thanks for the quick reply.


Reply With Quote