aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatti Tahvonen <matti.tahvonen@itmill.com>2008-05-15 11:31:30 +0000
committerMatti Tahvonen <matti.tahvonen@itmill.com>2008-05-15 11:31:30 +0000
commitacb2439901c4024c3346378ecc4f077d5893ff5b (patch)
tree7f47842ccde08e90908c9aec26fe5fa24832b885 /src
parent45bdd77dd415c103371d32360179a580cba8d09a (diff)
downloadvaadin-framework-acb2439901c4024c3346378ecc4f077d5893ff5b.tar.gz
vaadin-framework-acb2439901c4024c3346378ecc4f077d5893ff5b.zip
fixes #1641 and some other random layout issues on FF and Safari
svn changeset:4505/svn branch:trunk
Diffstat (limited to 'src')
-rw-r--r--src/com/itmill/toolkit/terminal/gwt/client/ui/IView.java9
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);
}
}