Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1221 in a recent build.
  1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    134
    Vote Rating
    1
    stefankendall is an unknown quantity at this point

      0  

    Default [PR3] Toolbar title position broken when spacers control button positioning

    [PR3] Toolbar title position broken when spacers control button positioning


    As per the kitchensink example, spacers control the positioning of buttons on a toolbar. In 1.1.1, the following code produces a button in the upper left, the title text centered, and a button in the upper-right:

    Code:
       {
                xtype:'toolbar',
                docked:'top',
                title:'Title',
                items:[
                    {
                        ui:'action',
                        text:'Left'
                    },
                    {
                        xtype:'spacer'
                    },
                    {
                        ui:'action',
                        text:'Right',
                    }
                ]
            }
    In PR3, the left button is in the upper left, the right button is in the middle of the screen, and the title text is shifted to the upper right of the toolbar.

    Positioning of title text works correctly when only one button is used without a spacer; the button appears in the upper left and the title is centered as expected. I tried using {html:'Title'}, as a workaround between a set of spacers, but it seems that any text in between spacers throws all positioning off.

  2. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    Thanks for the report.
    Sencha Inc.
    Robert Dougan - @rdougan
    Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.

  3. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    26
    Vote Rating
    0
    rhomb is on a distinguished road

      0  

    Default


    I'm struggling with this aswell. Where can I get a version where the fix is already applied?
    Are there nightly builds?

  4. #4
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Nothing until beta is ready. We are in the midst of introducing some destabilizing changes to MVC and Data, once things are in better shape we will release PR4.

    Sencha Inc

    Jamie Avins

    @jamieavins

Thread Participants: 3

Tags for this Thread