diff options
-rw-r--r-- | src/com/vaadin/terminal/gwt/client/ui/VBoxLayout.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ui/VBoxLayout.java b/src/com/vaadin/terminal/gwt/client/ui/VBoxLayout.java index 1b06861b8a..d6efc97e50 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VBoxLayout.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VBoxLayout.java @@ -391,6 +391,15 @@ public class VBoxLayout extends FlowPanel { } @Override + protected Element getContainerElement() { + if (captionWrap == null) { + return getElement(); + } else { + return captionWrap; + } + } + + @Override protected void onDetach() { if (spacer != null) { spacer.removeFromParent(); |