I've created a subclass of Window that saves the window's size in a cookie when the users drags to resize. It then restores that size the next time that window is drawn. The problem is, the next time that window is drawn the browsers viewport size may have been reduced and now the window edges extend beyond the viewport.
How do I get the current width and height of the viewport so I can adjust the size accordingly?
How do I get the current width and height of the viewport so I can adjust the size accordingly?
Comment