From: Leif Åstrand Date: Wed, 11 Apr 2012 17:06:55 +0000 (+0300) Subject: Avoid causing scrollbars by leaving undefined height set to auto X-Git-Tag: 7.0.0.alpha2~65^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6dd86540f8a4c365a6ede1818a516dcbe2b081fa;p=vaadin-framework.git Avoid causing scrollbars by leaving undefined height set to auto --- 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) {