]> source.dussan.org Git - vaadin-framework.git/commitdiff
itabsheet fix
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 11 Aug 2008 09:00:02 +0000 (09:00 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Mon, 11 Aug 2008 09:00:02 +0000 (09:00 +0000)
svn changeset:5163/svn branch:trunk

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

index d07d720f9c69c9565e162735e70fad529a61bca7..7ab19717a33ec1c5b53ad418034b54b20d30a7c1 100644 (file)
@@ -44,6 +44,9 @@ public class ITabsheetPanel extends ComplexPanel {
 \r
     private Element createContainerElement() {\r
         Element el = DOM.createDiv();\r
+        if (fullheight) {\r
+            DOM.setStyleAttribute(el, "height", "100%");\r
+        }\r
         hide(el);\r
         return el;\r
     }\r
@@ -108,13 +111,15 @@ public class ITabsheetPanel extends ComplexPanel {
 \r
     public void setHeight(String height) {\r
         super.setHeight(height);\r
-        if ("100%".equals(height) && !fullheight) {\r
-            int childCount = DOM.getChildCount(getElement());\r
-            for (int i = 0; i < childCount; i++) {\r
-                DOM.setStyleAttribute(DOM.getChild(getElement(), i), "height",\r
-                        "100%");\r
+        if ("100%".equals(height)) {\r
+            if (!fullheight) {\r
+                int childCount = DOM.getChildCount(getElement());\r
+                for (int i = 0; i < childCount; i++) {\r
+                    DOM.setStyleAttribute(DOM.getChild(getElement(), i),\r
+                            "height", "100%");\r
+                }\r
+                fullheight = true;\r
             }\r
-            fullheight = true;\r
         } else if (fullheight) {\r
             int childCount = DOM.getChildCount(getElement());\r
             for (int i = 0; i < childCount; i++) {\r