]> source.dussan.org Git - vaadin-framework.git/commitdiff
[merge from 6.7] #5521 fixed condition that was always checking for height, not width
authorAutomerge <automerge@vaadin.com>
Tue, 15 May 2012 09:09:09 +0000 (09:09 +0000)
committerAutomerge <automerge@vaadin.com>
Tue, 15 May 2012 09:09:09 +0000 (09:09 +0000)
svn changeset:23740/svn branch:6.8

src/com/vaadin/terminal/gwt/client/ui/VView.java

index abebf0ea4a8e0bc6e8b5e05010679b0eab108353..ec4c5d9cba917ff8d04c7ec463e7964a172f9880 100644 (file)
@@ -446,7 +446,8 @@ public class VView extends SimplePanel implements Container, ResizeHandler,
                             .getProperty(direction))) {
                         parentOfVApp.getStyle().setProperty(direction, "100%");
                     }
-                } else if (parentOfVApp.getStyle().getHeight().contains("%")) {
+                } else if (parentOfVApp.getStyle().getProperty(direction)
+                        .contains("%")) {
                     // if layout size is undefined or fixed and we have set a
                     // percentual size for portlet-body, remove size setting on
                     // portlet body