From 0446f0835993efde7a44d35ad0d03a36909e1458 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Fri, 16 Mar 2012 15:29:46 +0200 Subject: [PATCH] Don't use position: absolute to avoid scrollbars in IE9 --- src/com/vaadin/terminal/gwt/client/ui/RootConnector.java | 2 +- src/com/vaadin/terminal/gwt/client/ui/WindowConnector.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ui/RootConnector.java b/src/com/vaadin/terminal/gwt/client/ui/RootConnector.java index c7f445bd13..45a010a0f1 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/RootConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/RootConnector.java @@ -331,7 +331,7 @@ public class RootConnector extends AbstractComponentContainerConnector * height. Assuming v-view does not have an undefined width for now, see * #8460. */ - if (child.isRelativeHeight()) { + if (child.isRelativeHeight() && !BrowserInfo.get().isIE9()) { childStyle.setPosition(Position.ABSOLUTE); } else { childStyle.clearPosition(); diff --git a/src/com/vaadin/terminal/gwt/client/ui/WindowConnector.java b/src/com/vaadin/terminal/gwt/client/ui/WindowConnector.java index f1b7232de6..a39ce5e335 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/WindowConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/WindowConnector.java @@ -17,6 +17,7 @@ import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.Frame; import com.google.gwt.user.client.ui.Widget; import com.vaadin.terminal.gwt.client.ApplicationConnection; +import com.vaadin.terminal.gwt.client.BrowserInfo; import com.vaadin.terminal.gwt.client.ComponentConnector; import com.vaadin.terminal.gwt.client.LayoutManager; import com.vaadin.terminal.gwt.client.UIDL; @@ -280,7 +281,7 @@ public class WindowConnector extends AbstractComponentContainerConnector */ Element layoutElement = layout.getWidget().getElement(); Style childStyle = layoutElement.getStyle(); - if (layout.isRelativeHeight()) { + if (layout.isRelativeHeight() && !BrowserInfo.get().isIE9()) { childStyle.setPosition(Position.ABSOLUTE); Style wrapperStyle = contentElement.getStyle(); -- 2.39.5