From acb2439901c4024c3346378ecc4f077d5893ff5b Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Thu, 15 May 2008 11:31:30 +0000 Subject: [PATCH] fixes #1641 and some other random layout issues on FF and Safari svn changeset:4505/svn branch:trunk --- src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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); } } -- 2.39.5