Revision: 7056 Author: j...@google.com Date: Fri Nov 20 06:39:25 2009 Log: Merging trunk c5073 into this branch.
http://code.google.com/p/google-web-toolkit/source/detail?r=7056 Modified: /releases/2.0/branch-info.txt /releases/2.0/user/src/com/google/gwt/layout/client/LayoutImpl.java ======================================= --- /releases/2.0/branch-info.txt Fri Nov 20 06:35:24 2009 +++ /releases/2.0/branch-info.txt Fri Nov 20 06:39:25 2009 @@ -862,3 +862,7 @@ isCookieEnabled sets and retrieves a cookie instead of using navigator.cookieEnabled svn merge --ignore-ancestry -c7054 https://google-web-toolkit.googlecode.com/svn/trunk . +tr...@7053 was merged into this branch + Fixes issue where unit measurement divs could create document-level scrollbars on a small window. + svn merge --ignore-ancestry -c7053 https://google-web-toolkit.googlecode.com/svn/trunk . + ======================================= --- /releases/2.0/user/src/com/google/gwt/layout/client/LayoutImpl.java Tue Nov 10 10:32:15 2009 +++ /releases/2.0/user/src/com/google/gwt/layout/client/LayoutImpl.java Fri Nov 20 06:39:25 2009 @@ -51,7 +51,11 @@ Style style = ruler.getStyle(); style.setPosition(Position.ABSOLUTE); style.setZIndex(-32767); - style.setLeft(-10000, PX); + + // Position the ruler off the left/top edges, double the size just to be + // extra sure it doesn't show up on the screen. + style.setLeft(-20, widthUnit); + style.setTop(-20, heightUnit); // Note that we are making the ruler element 10x10, because some browsers // generate non-integral ratios (e.g., 1em == 13.3px), so we need a little -- http://groups.google.com/group/Google-Web-Toolkit-Contributors