From c1f2fd8a4f72e95499d0c8cba45030c784395644 Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Mon, 10 Mar 2008 14:45:21 +0000 Subject: [PATCH] commenting IE hack svn changeset:4014/svn branch:trunk --- .../toolkit/terminal/gwt/client/ui/IView.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 53b0cf36ae..ae175e4e71 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java @@ -38,10 +38,18 @@ public class IView extends SimplePanel implements Paintable, private ShortcutActionHandler actionHandler; + /** stored width for IE resize optiomization */ private int width; + /** stored height for IE resize optiomization */ private int height; + /** + * We are postponing resize process with IE. IE bugs with scrollbars in some + * situations, that causes false onWindowResized calls. With Timer we will + * give IE some time to decide if it really wants to keep current size + * (scrollbars). + */ private Timer resizeTimer; public IView(String elementId) { @@ -178,6 +186,11 @@ public class IView extends SimplePanel implements Paintable, public void onWindowResized(int width, int height) { if (Util.isIE()) { + /* + * IE will give us some false resized events due bugs with + * scrollbars. Postponing layout phase to see if size was really + * changed. + */ if (resizeTimer == null) { resizeTimer = new Timer() { public void run() { -- 2.39.5