]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed a small logic error in BoxLayout related to expand ratio
authorJouni Koivuviita <jouni@jounikoivuviita.com>
Thu, 19 Apr 2012 12:58:49 +0000 (15:58 +0300)
committerJouni Koivuviita <jouni@jounikoivuviita.com>
Thu, 19 Apr 2012 12:58:49 +0000 (15:58 +0300)
src/com/vaadin/terminal/gwt/client/ui/AbstractBoxLayoutConnector.java

index 546c89b33061b08a3e940156bf366e7fb0d17d45..2966f8b8ca6b8974228aac7270c7280c4867f11a 100644 (file)
@@ -384,7 +384,7 @@ public abstract class AbstractBoxLayoutConnector extends
 
     private boolean needsExpand() {
         boolean canApplyExpand = (getWidget().vertical && !isUndefinedHeight())
-                || !isUndefinedWidth();
+                || (!getWidget().vertical && !isUndefinedWidth());
         return hasExpandRatio.size() > 0 && canApplyExpand;
     }