VLF-ONE Keep Window Size across Sessions
Posted: Thu Aug 23, 2018 3:02 am
I have a request from a user that they would like to keep the window size across sessions.
He goes to a window and initially it takes up half the workspace, so he maximizes it. Then when he logs out, logs back in and comes back to the window, it has reverted to the original half size. He is asking me to keep it maximized.
My thought is to detect when the window is maximized, write a flag to local storage. On initialize, check the local storage flag and use avPaneMaximize to maximize the window. The problem as I see it is that I don't have a way to detect when the panel has been maximized. We have the SizeChanged event, which lets me know that the size has changed, but not to what extent, i.e. maximized, minimized, etc.
Any thoughts on how I could detect when a panel has been maximized or to how to keep the panel size across sessions?
He goes to a window and initially it takes up half the workspace, so he maximizes it. Then when he logs out, logs back in and comes back to the window, it has reverted to the original half size. He is asking me to keep it maximized.
My thought is to detect when the window is maximized, write a flag to local storage. On initialize, check the local storage flag and use avPaneMaximize to maximize the window. The problem as I see it is that I don't have a way to detect when the panel has been maximized. We have the SizeChanged event, which lets me know that the size has changed, but not to what extent, i.e. maximized, minimized, etc.
Any thoughts on how I could detect when a panel has been maximized or to how to keep the panel size across sessions?