diff options
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java index 128c9160cf..326a0b4328 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java @@ -192,9 +192,10 @@ public class IView extends SimplePanel implements Paintable, w.hide(); } + onWindowResized(Window.getClientWidth(), Window.getClientHeight()); // IE somehow fails some layout on first run, force layout // functions - Util.runDescendentsLayout(this); + // Util.runDescendentsLayout(this); } @@ -243,9 +244,15 @@ public class IView extends SimplePanel implements Paintable, } resizeTimer.schedule(200); } else { + // temporary set overflow hidden, not to let scrollbars disturb + // layout functions + final String overflow = DOM.getStyleAttribute(getElement(), + "overflow"); + DOM.setStyleAttribute(getElement(), "overflow", "hidden"); ApplicationConnection.getConsole().log( "Running layout functions due window resize"); Util.runDescendentsLayout(this); + DOM.setStyleAttribute(getElement(), "overflow", overflow); } } |