]> source.dussan.org Git - vaadin-framework.git/commitdiff
layout changes to Reservr
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 28 Nov 2008 09:52:47 +0000 (09:52 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Fri, 28 Nov 2008 09:52:47 +0000 (09:52 +0000)
svn changeset:6036/svn branch:trunk

src/com/itmill/toolkit/demo/reservation/ReservationApplication.java
src/com/itmill/toolkit/demo/reservation/ResourceSelectorPanel.java

index b385fbf9ad109017c8ec58e43314e2f8024085de..aa9b8adb4312f7f9609c3ed856b8d64c3486a8c0 100644 (file)
@@ -91,6 +91,7 @@ public class ReservationApplication extends Application {
         reservationTab.addComponent(reservationPanel);\r
 \r
         final OrderedLayout infoLayout = new OrderedLayout();\r
+        infoLayout.setSizeUndefined();\r
         infoLayout.setMargin(false, true, false, false);\r
         reservationPanel.addComponent(infoLayout);\r
         resourceName = new Label("From the list above");\r
index 25e4a189362c18d7f9da7ca6032d6c3db0f2d523..7f7124476d6fa52b553be7d411c6a4b7083fff99 100644 (file)
@@ -27,6 +27,7 @@ public class ResourceSelectorPanel extends Panel implements
     public ResourceSelectorPanel(String caption) {\r
         super(caption, new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL));\r
         addStyleName(Panel.STYLE_LIGHT);\r
+        setSizeUndefined();\r
     }\r
 \r
     public void setResourceContainer(Container resources) {\r
@@ -54,6 +55,7 @@ public class ResourceSelectorPanel extends Panel implements
                         .get(category);\r
                 if (resourceLayout == null) {\r
                     resourceLayout = new OrderedLayout();\r
+                    resourceLayout.setSizeUndefined();\r
                     resourceLayout.setMargin(true);\r
                     addComponent(resourceLayout);\r
                     categoryLayouts.put(category, resourceLayout);\r