Results 1 to 2 of 2

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

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium User wemerson.januario's Avatar
    Join Date
    Nov 2008
    Location
    Goinia - GO, Brazil
    Posts
    634
    Vote Rating
    49
      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: 'Usurio',
                    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 usurio 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
    Site/Blog: http://wemersonjanuario.com.brFrom: Goinia, GO, Brazil
    Consulting Training and Web Development

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

    Default

    this will be fixed in next build
    Phil Strong
    @philstrong

Posting Permissions

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