REQUIRED INFORMATION Ext version tested:
  • Ext 4.1.1
Browser versions tested against:
  • FF
  • Chrome 18
Description:
  • For windows that are added to container the getState function of Ext.window.Window must respect the property of the window 'floatParent' otherwise the saved position of the window will be in respect to the app body and not the component to which the window is added (rendered)
Possible fix:
  • Code:
    Ext.override(Ext.window.Window, {
            getState: function() {
                var me = this,
                    state = me.callParent() || {},
                    maximized = !!me.maximized;
    
                state.maximized = maximized;
                Ext.apply(state, {
                    size: maximized ? me.restoreSize : me.getSize(),
                    pos: maximized ? me.restorePos : me.getPosition(!!me.floatParent)
    //                pos: maximized ? me.restorePos : me.getPosition() // <- original
                });
                return state;
            }
        });
Additional CSS used:
  • only default ext-all.css
Operating System:
  • Win 7