View Full Version : How do I tell if a window is maximized?
okwei
17 Feb 2009, 11:08 AM
There's not getter of the private maximized property in the Window class.
tryanDLS
17 Feb 2009, 11:29 AM
You could add a listener to the maximize event and maintain a flag or you could look at the window's buttons - when it's maximized, the buttons change. See if the div with x-tool-restore class is visible.
okwei
17 Feb 2009, 12:00 PM
You could add a listener to the maximize event and maintain a flag or you could look at the window's buttons - when it's maximized, the buttons change. See if the div with x-tool-restore class is visible.
Well, this is a solution but when the maximized property has no getter? I could also override the maximize and restore function to maintain my own flag.. but..
tryanDLS
17 Feb 2009, 12:34 PM
Sorry, I didn't notice this was a GXT post - My response was based on a simple Ext Window. I don't know if my comments are valid for GXT or they should add a getter.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.