Results 1 to 2 of 2

Thread: tabPanel/NavigationView custom font title incorrect ellipsis on init

    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
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Vote Rating
    1272
      0  

    Default

    Thanks for the report.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •