-
3 Mar 2012 6:29 AM #1
tabPanel/NavigationView custom font title incorrect ellipsis on init
tabPanel/NavigationView custom font title incorrect ellipsis on init
REQUIRED INFORMATIONExt version tested:
- ST2 RC2
- (OSX Lion)Chrome 17.0.963.56
- Android2.3/Android4
- Safari iOS5
- html5
- When using a custom font (tried several fonts, happens on any)via font face for title bar, an incorrect ellipsis always appears on init, which gets fixed when you navigate in the app and come back to first screen
- check test case below : ellipsis...
- change tab and come back to first tab: no ellipsis
- ellipsis should be set only for too long titles even on init
The result that occurs instead:- ellipsis is set on init regardless of title length
Test Case (be patient, my server is... slow): http://plookyboy.free.fr/ST2RC2Sandbox/Sandbox/index.html
code for the tab panel :including the font in css via font face:Code:Ext.define('MyApp.view.MyTabPanel', { extend: 'Ext.tab.Panel', requires: [ 'Ext.navigation.View', 'Ext.dataview.List' ], config: { tabBar: { docked: 'bottom' }, items: [ { xtype: 'navigationview', title: 'Tab 1', iconCls: 'info', items: [ { xtype: 'list', itemTpl: [ '<div>{name}</div>' ], title: 'My Test Title' } ] }, { xtype: 'container', title: 'Tab 2', iconCls: 'info' }, { xtype: 'container', title: 'Tab 3', iconCls: 'info' } ] } });
Code:@font-face{ font-family:orbitron; src:url("orbitron-light.ttf") } .x-title { font-family: orbitron; }
-
4 Mar 2012 6:49 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,107
- Vote Rating
- 453
Thanks for the report.
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.
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-2353
in
2.2.


Reply With Quote