]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed: if Panel's width changes from some other value to 100%, the result won't be...
authorJouni Koivuviita <jouni.koivuviita@itmill.com>
Thu, 3 Jul 2008 13:10:54 +0000 (13:10 +0000)
committerJouni Koivuviita <jouni.koivuviita@itmill.com>
Thu, 3 Jul 2008 13:10:54 +0000 (13:10 +0000)
svn changeset:5031/svn branch:trunk

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

index b4ce0318c0d5e39802dbf4e9bc06fc4cf6284bd5..925a5c3758056db104670dd20af93bfd77a5a5cd 100644 (file)
@@ -348,7 +348,9 @@ public class IPanel extends SimplePanel implements Paintable,
         // Let browser handle 100% width (DIV element takes all size by
         // default).
         // This way we can specify borders for Panel's outer element.
-        if (!width.equals("100%")) {
+        if (width.equals("100%")) {
+            super.setWidth("");
+        } else {
             super.setWidth(width);
         }
     }