Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to get current viewport size

    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?

    #2
    com.google.gwt.user.client.Window#getClientHeight() / getClientWidth()

    Are you looking for something different?

    Comment


      #3
      That does it. Thanks!

      Comment

      Working...
      X