]> source.dussan.org Git - vaadin-framework.git/commitdiff
fixes #2062
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 16 Sep 2008 09:11:06 +0000 (09:11 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 16 Sep 2008 09:11:06 +0000 (09:11 +0000)
svn changeset:5411/svn branch:trunk

WebContent/ITMILL/themes/default/splitpanel/splitpanel.css
WebContent/ITMILL/themes/default/styles.css
src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetPanel.java

index bb7c0872694553c620a231690a8651917d471aaf..0fe325e184fa93f793c54c6b89039e8a12dfbdc1 100644 (file)
@@ -1,3 +1,7 @@
+.i-splitpanel-horizontal, .i-splitpanel-vertical {
+       overflow: hidden;
+}
+
 .i-splitpanel-horizontal .i-splitpanel-hsplitter {
        width: 6px;
        font-size: 1px; /* for IE6 */
index e749a7b69eb725614582aed87c0d9354dc77c767..4a3a7d6377a01e69fd58ad7b129b3e7f5125dd3e 100644 (file)
@@ -1577,6 +1577,10 @@ input.i-modified,
 * html .i-slider-vertical .i-slider-handle {
        margin: 0 -1px;
 }
+.i-splitpanel-horizontal, .i-splitpanel-vertical {
+       overflow: hidden;
+}
+
 .i-splitpanel-horizontal .i-splitpanel-hsplitter {
        width: 6px;
        font-size: 1px; /* for IE6 */
index 47f60996f1505ed231db2459fd15f273836b033b..0f18345da2d419f9862a7fcd75cf3b81f5f0852b 100644 (file)
@@ -134,17 +134,27 @@ public class ITabsheetPanel extends ComplexPanel {
     }\r
 \r
     private void hide(Element e) {\r
+        DOM.setStyleAttribute(e, "width", getOffsetWidth() + "px");\r
+        DOM.setStyleAttribute(e, "height", getOffsetHeight() + "px");\r
+        DOM.setStyleAttribute(e, "overflow", "hidden");\r
         DOM.setStyleAttribute(e, "visibility", "hidden");\r
         DOM.setStyleAttribute(e, "position", "absolute");\r
         DOM.setStyleAttribute(e, "top", "0px");\r
-        // Display: none fixes #2062\r
-        DOM.setStyleAttribute(e, "display", "none");\r
+        DOM.setStyleAttribute(e, "left", "0px");\r
     }\r
 \r
     private void unHide(Element e) {\r
-        DOM.setStyleAttribute(e, "visibility", "");\r
         DOM.setStyleAttribute(e, "position", "");\r
         DOM.setStyleAttribute(e, "top", "");\r
-        DOM.setStyleAttribute(e, "display", "");\r
+        DOM.setStyleAttribute(e, "left", "");\r
+        DOM.setStyleAttribute(e, "visibility", "");\r
+        DOM.setStyleAttribute(e, "width", "");\r
+        if (fullheight) {\r
+            DOM.setStyleAttribute(e, "height", "100%");\r
+        } else {\r
+            DOM.setStyleAttribute(e, "height", "");\r
+        }\r
+        DOM.setStyleAttribute(e, "overflow", "");\r
+\r
     }\r
 }\r