From: Leif Åstrand Date: Fri, 16 Mar 2012 13:29:46 +0000 (+0200) Subject: Don't use position: absolute to avoid scrollbars in IE9 X-Git-Tag: 7.0.0.alpha2~299 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0446f0835993efde7a44d35ad0d03a36909e1458;p=vaadin-framework.git Don't use position: absolute to avoid scrollbars in IE9 --- 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();