Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Brazil, Goiânia
    Posts
    533
    Vote Rating
    26
    wemerson.januario will become famous soon enough wemerson.januario will become famous soon enough

      0  

    Default [FIXED][1.2 Beta] setting align stretch automaticaly while closing designer

    For example, if I add a form and a toolbar like this
    Code:
    Ext.define('MyForm1Ui', {
        extend: 'Ext.form.Panel',
    
        height: 165,
        itemId: 'form',
        width: 100,
        bodyPadding: 10,
        region: 'south',
    
        initComponent: function() {
            var me = this;
            me.baseParams = {
                action: 'login'
            };
            me.items = [
                {
                    xtype: 'textfield',
                    name: 'usuario',
                    fieldLabel: 'Usuário',
                    allowBlank: false,
                    enforceMaxLength: true,
                    maxLength: 11,
                    selectOnFocus: true,
                    anchor: '100%'
                },
                {
                    xtype: 'textfield',
                    id: 'senha',
                    inputType: 'password',
                    name: 'senha',
                    fieldLabel: 'Senha',
                    allowBlank: false,
                    enableKeyEvents: true,
                    anchor: '100%'
                },
                {
                    xtype: 'checkboxfield',
                    id: 'ckRemember',
                    itemId: 'ckRemember',
                    name: 'ckRemember',
                    fieldLabel: ' ',
                    labelSeparator: ' ',
                    boxLabel: 'Lembrar usuário nesse computador',
                    anchor: '100%'
                },
                {
                    xtype: 'checkboxfield',
                    itemId: 'ckFullScreen',
                    name: 'ckFullScreen',
                    fieldLabel: ' ',
                    labelSeparator: ' ',
                    boxLabel: 'Iniciar em tela cheia',
                    anchor: '100%'
                }
            ];
            me.dockedItems = [
                {
                    xtype: 'toolbar',
                    ui: 'footer',
                    defaults: {
                        width: 110,
                        scale: 'medium'
                    },
                    dock: 'bottom',
                    layout: {
                        pack: 'center',
                        type: 'hbox'
                    },
                    items: [
                        {
                            xtype: 'button',
                            itemId: 'btnLogin',
                            iconCls: 'icon-login-medium',
                            text: 'Login'
                        },
                        {
                            xtype: 'button',
                            itemId: 'btnPassword',
                            iconCls: 'icon-password-medium',
                            text: 'Esqueci Senha'
                        },
                        {
                            xtype: 'button',
                            itemId: 'btnReset',
                            iconCls: 'icon-clear-medium',
                            text: 'Limpar'
                        }
                    ]
                }
            ];
            me.callParent(arguments);
        }
    });
    and everything renders ok in canvas and preview, when you close de Designer and open again the align comes back to "stretch" like this.


    Code:
    me.layout = {
                align: 'stretch',
                pack: 'center',
                type: 'hbox'
            };
    and the toolbar does not render anymore, so I need to reset the align to "top"

    Possible bug! the Designer is setting "stretch" as default value of align in layout, I gues if you set top as default, correct the problem!
    Wemerson Januario
    Website: http://wemersonjanuario.com.br
    Twitter: https://twitter.com/januariocoder

    Email: wemerson.januario@gmail.com

    From: Goiânia, Brazil
    Ext JS Consulting, Training, Support

  2. #2
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default

    this will be fixed in next build
    Phil Strong
    @philstrong

Thread Participants: 1