]> source.dussan.org Git - vaadin-framework.git/commitdiff
Reverted [16223]
authorJohn Alhroos <john.ahlroos@itmill.com>
Tue, 30 Nov 2010 14:12:12 +0000 (14:12 +0000)
committerJohn Alhroos <john.ahlroos@itmill.com>
Tue, 30 Nov 2010 14:12:12 +0000 (14:12 +0000)
svn changeset:16234/svn branch:6.5

src/com/vaadin/terminal/gwt/client/ui/layout/CellBasedLayout.java

index 7c8555ff773c067a2d98959b3e017761dd53e306..d585cf8eb748f1d9b5db1bd5c8b15d131e02f8b0 100644 (file)
@@ -126,6 +126,8 @@ public abstract class CellBasedLayout extends ComplexPanel implements Container
         if (client.updateComponent(this, uidl, true)) {
             return;
         }
+
+        handleDynamicDimensions(uidl);
     }
 
     @Override
@@ -156,6 +158,27 @@ public abstract class CellBasedLayout extends ComplexPanel implements Container
         }
     }
 
+    private void handleDynamicDimensions(UIDL uidl) {
+        String w = uidl.hasAttribute("width") ? uidl
+                .getStringAttribute("width") : "";
+
+        String h = uidl.hasAttribute("height") ? uidl
+                .getStringAttribute("height") : "";
+
+        if (w.equals("")) {
+            dynamicWidth = true;
+        } else {
+            dynamicWidth = false;
+        }
+
+        if (h.equals("")) {
+            dynamicHeight = true;
+        } else {
+            dynamicHeight = false;
+        }
+
+    }
+
     @Override
     public void setHeight(String height) {
         super.setHeight(height);