Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-8820 in a recent build.
  1. #1
    Ext JS Premium Member
    Join Date
    Aug 2011
    Posts
    7
    Vote Rating
    0
    dwahli is on a distinguished road

      0  

    Default [ext-4.2.0.555] Window.maximize() error

    [ext-4.2.0.555] Window.maximize() error


    Using the
    Code:
    maximized: true
    config trigger an error if a Window doesn't have a header.
    This is basic coorection (in red):
    Code:
    Ext.define('Ext.window.Window', {
    ...
        maximize: function(animate) {
            var me = this,
                header = me.header,
                tools = me.tools,
                changed;
    
            if (!me.maximized) {
                me.expand(false);
                if (!me.hasSavedRestore) {
                    me.restoreSize = me.getSize();
                    me.restorePos = me.getPosition(true);
                }
    
                if (header)
                    header.suspendLayouts();
                if (me.maximizable) {
                    tools.maximize.hide();
                    tools.restore.show();
                    changed = true;
                }
    
                if (me.collapseTool) {
                    me.collapseTool.hide();
                    changed = true;
                }
                if (header)
                    this.resumeHeaderLayout(changed);

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    56
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1