PDA

View Full Version : [FIXED] 'flex' property set to 1 after reopen project



frb
11 Feb 2012, 5:41 AM
Write simple project:

Ext.define('MyApp.view.ui.MyContainer', {
extend: 'Ext.container.Container',

height: 37,
width: 1094,
layout: {
type: 'hbox'
},

initComponent: function() {
var me = this;

Ext.applyIf(me, {
items: [
{
xtype: 'combobox',
fieldLabel: 'Label'
}
]
});

me.callParent(arguments);
}

});

save project, close designer, open designer and saved project:


Ext.define('MyApp.view.ui.MyContainer', {
extend: 'Ext.container.Container',

height: 37,
width: 1094,
layout: {
type: 'hbox'
},

initComponent: function() {
var me = this;

Ext.applyIf(me, {
items: [
{
xtype: 'combobox',
fieldLabel: 'Label',
flex: 1
}
]
});

me.callParent(arguments);
}

});

designer add flex: 1 to combobox -> in big project all design fail
this sometime affect other components(set flex to buttons, radio groups and other..)

jjohnston
12 Feb 2012, 8:06 PM
Thank you for reporting this issue. I have been able to reproduce it, but only if I remove the 'flex' config by selecting the value, pressing delete, then enter. After doing that and reopening the project, the flex comes back. If, however, I remove the 'flex' config by clicking on the "x" icon next to the value, then it seems to be persisted correctly.

I've opened an internal ticket to get the former case fixed.

aconran
2 Mar 2012, 3:30 PM
This will be fixed in the next release > 298.