-
21 Jun 2012 6:23 AM #1
[4.1.1] Window 'getState' should respect the floatParent propert of a window
[4.1.1] Window 'getState' should respect the floatParent propert of a window
REQUIRED INFORMATION Ext version tested:
- Ext 4.1.1
- FF
- Chrome 18
- 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)
- 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; } });
- only default ext-all.css
- Win 7
You found a bug! We've classified it as
EXTJSIV-6608
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote