]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #4608
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 28 Apr 2010 11:43:38 +0000 (11:43 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Wed, 28 Apr 2010 11:43:38 +0000 (11:43 +0000)
svn changeset:12881/svn branch:6.3

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

index 25d1fd0cc09866fb40edfa2e1cb166563a393cd2..83e3c665367d30509bf5bd664e9ae728bae837c0 100644 (file)
@@ -452,6 +452,18 @@ public class ChildComponentContainer extends Panel {
         }
 
         updateCaptionSize();
+
+        if (relativeSize == null) {
+            /*
+             * relativeSize may be null if component is updated via independent
+             * update, after it has initially been hidden. See #4608
+             * 
+             * It might also change in which case there would be similar issues.
+             * 
+             * Yes, it is an ugly hack. Don't come telling me about it.
+             */
+            setRelativeSize(Util.parseRelativeSize(uidl));
+        }
     }
 
     public void updateCaptionSize() {