]> source.dussan.org Git - vaadin-framework.git/commitdiff
Don't use position: absolute to avoid scrollbars in IE9
authorLeif Åstrand <leif@vaadin.com>
Fri, 16 Mar 2012 13:29:46 +0000 (15:29 +0200)
committerLeif Åstrand <leif@vaadin.com>
Fri, 16 Mar 2012 13:30:08 +0000 (15:30 +0200)
src/com/vaadin/terminal/gwt/client/ui/RootConnector.java
src/com/vaadin/terminal/gwt/client/ui/WindowConnector.java

index c7f445bd134a782378c451180ca75ec40a278c35..45a010a0f1d3f9d22289ab59f6eb54fb0661116f 100644 (file)
@@ -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();
index f1b7232de65fc5fea0588027397dcec44f19dee2..a39ce5e335d13b1b24fc04cab0560888879523fa 100644 (file)
@@ -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();