aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/ITabsheetPanel.java18
1 files changed, 14 insertions, 4 deletions
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", "");
+
}
}