summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--WebContent/ITMILL/themes/default/splitpanel/splitpanel.css4
-rw-r--r--WebContent/ITMILL/themes/default/styles.css4
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetPanel.java18
3 files changed, 22 insertions, 4 deletions
diff --git a/WebContent/ITMILL/themes/default/splitpanel/splitpanel.css b/WebContent/ITMILL/themes/default/splitpanel/splitpanel.css
index bb7c087269..0fe325e184 100644
--- a/WebContent/ITMILL/themes/default/splitpanel/splitpanel.css
+++ b/WebContent/ITMILL/themes/default/splitpanel/splitpanel.css
@@ -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 */
diff --git a/WebContent/ITMILL/themes/default/styles.css b/WebContent/ITMILL/themes/default/styles.css
index e749a7b69e..4a3a7d6377 100644
--- a/WebContent/ITMILL/themes/default/styles.css
+++ b/WebContent/ITMILL/themes/default/styles.css
@@ -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 */
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetPanel.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetPanel.java
index 47f60996f1..0f18345da2 100644
--- a/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetPanel.java
+++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetPanel.java
@@ -134,17 +134,27 @@ public class ITabsheetPanel extends ComplexPanel {
}
private void hide(Element e) {
+ DOM.setStyleAttribute(e, "width", getOffsetWidth() + "px");
+ DOM.setStyleAttribute(e, "height", getOffsetHeight() + "px");
+ DOM.setStyleAttribute(e, "overflow", "hidden");
DOM.setStyleAttribute(e, "visibility", "hidden");
DOM.setStyleAttribute(e, "position", "absolute");
DOM.setStyleAttribute(e, "top", "0px");
- // Display: none fixes #2062
- DOM.setStyleAttribute(e, "display", "none");
+ DOM.setStyleAttribute(e, "left", "0px");
}
private void unHide(Element e) {
- DOM.setStyleAttribute(e, "visibility", "");
DOM.setStyleAttribute(e, "position", "");
DOM.setStyleAttribute(e, "top", "");
- DOM.setStyleAttribute(e, "display", "");
+ DOM.setStyleAttribute(e, "left", "");
+ DOM.setStyleAttribute(e, "visibility", "");
+ DOM.setStyleAttribute(e, "width", "");
+ if (fullheight) {
+ DOM.setStyleAttribute(e, "height", "100%");
+ } else {
+ DOM.setStyleAttribute(e, "height", "");
+ }
+ DOM.setStyleAttribute(e, "overflow", "");
+
}
}