1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    27
    Vote Rating
    0
    insoft is on a distinguished road

      0  

    Default Unanswered: dockedItems for panel using Sencha Architect

    Unanswered: dockedItems for panel using Sencha Architect


    Hi, Sencha. The bug is very straightforward, but I didn't found it in the forum.
    When you use Sencha Architect, it adds elements to dockedItems next way (will use toolbar for this example):

    Code:
    initComponent: function() {
            var me = this;
    
    
            Ext.applyIf(me, {
                dockedItems: [
                    {
                        xtype: 'toolbar',
                        dock: 'top'
                    }
                ]
            });
    
    
            me.callParent(arguments);
        }
    The code is generated by Sencha Architect and Ext.applyIf method is used by default (non-editable in the IDE).
    Due to this documentation the '=== undefined' is used to detect if new configuration should be applied for Ext.applyIf.
    Due to this documentation Ext.panel.Panel has default field 'dockedItems: null' which is not UNDEFINED.

    It actually means that all the panels with dockedItems generated by Sencha Architect will have no dockedItems with ExtJS 5.

    Is everything right or I have missed something? Thanks.

    PS - I've found the problem using ExtJS 5.0.1

  2. #2
    Sencha User
    Join Date
    May 2012
    Posts
    27
    Vote Rating
    0
    insoft is on a distinguished road

      0  

    Default


    The thread was moved here from "ExtJS 5.x Bugs".

    Isn't it a problem of ExtJS 5.x backward compatibility with Sencha Architect 2.x and 3.x?
    Does it really has sense to make new version of Sencha Architect (both 2.x and 3.x) instead of just initializing 'dockedItems' with 'undefined' instead of 'null' for Ext.panel.Panel?