It is worth the effort to explore the possibility for a widget that stores the window size in a user related entity.
- Create an entity formsize (formname, top, left, height, width) associated to user
- Create a widget that is connected to this entity, (connect the name, left, top etc attributes)
- At the close form (uninitialize?) find the surrounding div that is the popup window.
- Find the formsize object or create one.
- Store the values in the object
At opening of the form (loaded event?)
- Find the formsize object for the user
- Find the surrouding div (popup window)
- Set the size, redraw screen
Timing is crucial, so the form must be rendered before resizing. Find the right events to connect to.