}\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