From: Marc Englund Date: Fri, 28 Nov 2008 10:02:52 +0000 (+0000) Subject: Small layout fixes. X-Git-Tag: 6.7.0.beta1~3695 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7e005a0ccb725949b699767d713c6d0527ca2c15;p=vaadin-framework.git Small layout fixes. svn changeset:6037/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/demo/reservation/ReservationApplication.java b/src/com/itmill/toolkit/demo/reservation/ReservationApplication.java index aa9b8adb43..ad661a3a6c 100644 --- a/src/com/itmill/toolkit/demo/reservation/ReservationApplication.java +++ b/src/com/itmill/toolkit/demo/reservation/ReservationApplication.java @@ -91,6 +91,7 @@ public class ReservationApplication extends Application { reservationTab.addComponent(reservationPanel); final OrderedLayout infoLayout = new OrderedLayout(); + infoLayout.setSpacing(true); infoLayout.setSizeUndefined(); infoLayout.setMargin(false, true, false, false); reservationPanel.addComponent(infoLayout); @@ -104,6 +105,9 @@ public class ReservationApplication extends Application { reservationButton = new Button("Make reservation", this, "makeReservation"); infoLayout.addComponent(reservationButton); + infoLayout.setComponentAlignment(reservationButton, + OrderedLayout.ALIGNMENT_HORIZONTAL_CENTER, + OrderedLayout.ALIGNMENT_VERTICAL_CENTER); map = new GoogleMap(); map.setWidth("250px"); diff --git a/src/com/itmill/toolkit/demo/reservation/ResourceSelectorPanel.java b/src/com/itmill/toolkit/demo/reservation/ResourceSelectorPanel.java index 7f7124476d..64974bf2ea 100644 --- a/src/com/itmill/toolkit/demo/reservation/ResourceSelectorPanel.java +++ b/src/com/itmill/toolkit/demo/reservation/ResourceSelectorPanel.java @@ -28,6 +28,7 @@ public class ResourceSelectorPanel extends Panel implements super(caption, new OrderedLayout(OrderedLayout.ORIENTATION_HORIZONTAL)); addStyleName(Panel.STYLE_LIGHT); setSizeUndefined(); + setWidth("100%"); } public void setResourceContainer(Container resources) {