Results 1 to 3 of 3

Thread: 'flex' property set to 1 after reopen project

    Success! Looks like we've fixed this one. According to our records the fix was applied for DSGNR-1396 in a recent build.
  1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    8

    Exclamation 'flex' property set to 1 after reopen project

    Write simple project:
    Code:
    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:

    Code:
    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..)

  2. #2
    Sencha User
    Join Date
    Sep 2010
    Posts
    567

    Default

    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.

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    9,488

    Default

    This will be fixed in the next release > 298.

Posting Permissions

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