-
25 Feb 2012 11:40 PM #1
Width is ignored on first child element in titlebar (ST2-RC)
Width is ignored on first child element in titlebar (ST2-RC)
The width of the first child element in a titlebar is always set to 'auto'.
My workaround is to add a hidden element as first child (red code).Code:Ext.define('App.view.StatusBar', { extend: 'Ext.TitleBar', xtype: 'StatusBar', config: { title: 'My title bar', docked: 'top', items: [ { hidden: true }, { xtype: 'button', action: 'home', iconCls: 'orb', ui: 'orb', width: 60 } ....
-
27 Feb 2012 8:09 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
Thank you for the report.
-
27 Feb 2012 11:02 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
This issue has been fixed for the next release.
-
24 Apr 2012 12:53 AM #4
Still not fixed?
Still not fixed?
When my titlebar has a width of 400px or more, everything look fine. But when I resize my browser window to less than 400px width, the first element of the title bar becomes too width.
I tried to give it a fixed width, but that is ignored.
Ok:
ok.png
Not ok:
fail.png
I was wondering if this is the same bug or if I am doing something wrong.
I'm using Sencha 2.0.1 and here is my code:
Code:config: { styleHtmlContent: true, height: '100%', layout: { type: 'vbox', pack: 'start', align: 'center' }, items: [ { xtype: 'titlebar', height: '100%', docked: 'top', items: [ { xtype: 'button', iconCls: 'stopall', iconMask: true', align: 'left' }, { xtype: 'button', iconCls: 'blankscr', iconMask: true, align: 'left' }, { xtype: 'button', iconCls: 'restricted', iconMask: true, align: 'left' }, { xtype: 'button', iconCls: 'classview', iconMask: true, align: 'right'}, { xtype: 'button', iconCls: 'listview', iconMask: true, align: 'right'} ] } ]
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-2259
in
2.0.


Reply With Quote