summaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2012-11-26 19:58:16 +0200
committerArtur Signell <artur@vaadin.com>2012-11-26 20:18:37 +0200
commit515c3993e81025515aefe1af18a5a9bf80ce5686 (patch)
treeed0463240fd9d05a91ebe281001845574a0181b6 /client/src
parentc27a7044bb0ed55eb51b53bd7b2bd9204d614383 (diff)
downloadvaadin-framework-515c3993e81025515aefe1af18a5a9bf80ce5686.tar.gz
vaadin-framework-515c3993e81025515aefe1af18a5a9bf80ce5686.zip
Fix resize of a Window with a single component (#10375)
Change-Id: I04d2d39b61ee5fb841511dd23d6f674089cff916
Diffstat (limited to 'client/src')
-rw-r--r--client/src/com/vaadin/client/ui/VWindow.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ui/VWindow.java b/client/src/com/vaadin/client/ui/VWindow.java
index 0885077111..1b35b020f2 100644
--- a/client/src/com/vaadin/client/ui/VWindow.java
+++ b/client/src/com/vaadin/client/ui/VWindow.java
@@ -744,8 +744,11 @@ public class VWindow extends VOverlay implements ShortcutActionHandlerOwner,
private void updateContentsSize() {
// Update child widget dimensions
if (client != null) {
- client.handleComponentRelativeSize(layout.getWidget());
- client.runDescendentsLayout((HasWidgets) layout.getWidget());
+ Widget childWidget = layout.getWidget();
+ client.handleComponentRelativeSize(childWidget);
+ if (childWidget instanceof HasWidgets) {
+ client.runDescendentsLayout((HasWidgets) childWidget);
+ }
}
LayoutManager layoutManager = LayoutManager.get(client);