-
27 Jul 2011 4:45 AM #1
[FIXED][1.2 Beta] setting align stretch automaticaly while closing designer
[FIXED][1.2 Beta] setting align stretch automaticaly while closing designer
For example, if I add a form and a toolbar like this
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: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 the toolbar does not render anymore, so I need to reset the align to "top"Code:me.layout = { align: 'stretch', pack: 'center', type: 'hbox' };
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
Skype: wemerson.januario
Email: wemerson.januario@gmail.com
Fone: 62 84101145 - Goiânia-GO- Brazil
Consulting and Training Ext JS
Projects: (Nubes ERP)
-
28 Jul 2011 6:57 AM #2
this will be fixed in next build
Phil Strong
@philstrong
#SenchaArchitect
Sencha Architect Development Team
Thank you for reporting this bug. We will make it our priority to review this report.



Reply With Quote