Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-2353 in a recent build.
  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    29
    Vote Rating
    0
    JeanPlouin is on a distinguished road

      0  

    Default tabPanel/NavigationView custom font title incorrect ellipsis on init

    tabPanel/NavigationView custom font title incorrect ellipsis on init


    REQUIRED INFORMATIONExt version tested:
    • ST2 RC2
    Browser versions tested against:
    • (OSX Lion)Chrome 17.0.963.56
    • Android2.3/Android4
    • Safari iOS5
    DOCTYPE tested against:
    • html5
    Description:
    • 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
    Steps to reproduce the problem:
    • check test case below : ellipsis...
    • change tab and come back to first tab: no ellipsis
    The result that was expected:
    • ellipsis should be set only for too long titles even on init
    ExpectedTitle.jpg

    The result that occurs instead:
    • ellipsis is set on init regardless of title length
    ellipsisPb.jpg

    Test Case (be patient, my server is... slow):
    http://plookyboy.free.fr/ST2RC2Sandbox/Sandbox/index.html

    code for the tab panel :
    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'
                }
            ]
        }
    });
    including the font in css via font face:
    Code:
    @font-face{	font-family:orbitron;
    	src:url("orbitron-light.ttf")
    }
    
    
    .x-title {
    	font-family: orbitron;
    }

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,398
    Vote Rating
    849
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread