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

      0  

    Default 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'.

    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
            }
        ....
    My workaround is to add a hidden element as first child (red code).

  2. #2
    Sencha - Sencha Touch Dev Team 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


    Thank you for the report.

    Sencha Inc

    Jamie Avins

    @jamieavins

  3. #3
    Sencha - Sencha Touch Dev Team 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


    This issue has been fixed for the next release.

    Sencha Inc

    Jamie Avins

    @jamieavins

  4. #4
    Sencha User
    Join Date
    Mar 2012
    Posts
    8
    Vote Rating
    0
    suz is on a distinguished road

      0  

    Default 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'}
    
    
                    ]
                }
    
    
            ]

Thread Participants: 2

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar