From 6dd86540f8a4c365a6ede1818a516dcbe2b081fa Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Wed, 11 Apr 2012 20:06:55 +0300 Subject: [PATCH] Avoid causing scrollbars by leaving undefined height set to auto --- src/com/vaadin/terminal/gwt/client/ui/VTabsheetPanel.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VTabsheetPanel.java b/src/com/vaadin/terminal/gwt/client/ui/VTabsheetPanel.java index 0bca530367..b59d846f48 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VTabsheetPanel.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VTabsheetPanel.java @@ -191,8 +191,12 @@ public class VTabsheetPanel extends ComplexPanel { // v-tabsheet-tabsheetpanel height getElement().getStyle().setPropertyPx("height", height); - // widget wrapper height - wrapperDiv.getStyle().setPropertyPx("height", height); + if (dynamicHeight) { + wrapperDiv.getStyle().clearHeight(); + } else { + // widget wrapper height + wrapperDiv.getStyle().setPropertyPx("height", height); + } } public void replaceComponent(Widget oldComponent, Widget newComponent) { -- 2.39.5