]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed TabSheet size update problem
authorArtur Signell <artur.signell@itmill.com>
Thu, 13 Nov 2008 11:22:38 +0000 (11:22 +0000)
committerArtur Signell <artur.signell@itmill.com>
Thu, 13 Nov 2008 11:22:38 +0000 (11:22 +0000)
svn changeset:5885/svn branch:trunk

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

index f806039e58897c6b355b4012371b4dcdb4dbc849..d0f624f608112b81b2fcc2062adc27b96f86830d 100644 (file)
@@ -558,7 +558,7 @@ public class ITabsheet extends ITabsheetBase implements
     }
 
     public boolean requestLayout(Set<Paintable> child) {
-        if (height != null && width != null) {
+        if (!isDynamicHeight() && !isDynamicWidth()) {
             /*
              * If the height and width has been specified for this container the
              * child components cannot make the size of the layout change
@@ -567,14 +567,14 @@ public class ITabsheet extends ITabsheetBase implements
             return true;
         }
 
+        fixVisibleTabSize();
+
         if (renderInformation.updateSize(getElement())) {
             /*
              * Size has changed so we let the child components know about the
              * new size.
              */
-            fixVisibleTabSize();
             iLayout();
-
             return false;
         } else {
             /*