]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes #1940: TextField without caption, but with error, inside fixed width ordered...
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>
Thu, 21 Aug 2008 11:28:23 +0000 (11:28 +0000)
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>
Thu, 21 Aug 2008 11:28:23 +0000 (11:28 +0000)
svn changeset:5236/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java

index 500a72b175ac7d93318b9d44e28e4ba85f5ecd88..236e033f1f595277a55b600bf9f78e16c0672ea2 100644 (file)
@@ -614,10 +614,8 @@ public class IOrderedLayout extends Panel implements Container,
                     : getElementWrappingAlignmentStructures();
 
             // Overflow
-            DOM.setStyleAttribute(e, "overflowX", pixelWidth < 0 ? ""
-                    : "hidden");
-            DOM.setStyleAttribute(e, "overflowY", pixelHeight < 0 ? ""
-                    : "hidden");
+            DOM.setStyleAttribute(e, "overflow", pixelWidth < 0
+                    && pixelHeight < 0 ? "" : "hidden");
 
             // Set size
             DOM.setStyleAttribute(e, "width", pixelWidth < 0 ? "" : pixelWidth