From: Leif Åstrand Date: Wed, 14 Mar 2012 14:07:26 +0000 (+0200) Subject: Run sizeInit when changing to undefined height (#8525) X-Git-Tag: 7.0.0.alpha2~309^2~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dcc700bfa4076b02fd61a2334900fd19fa34f412;p=vaadin-framework.git Run sizeInit when changing to undefined height (#8525) --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java index 809a4dcb72..d2e4339ae0 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java @@ -5764,6 +5764,19 @@ public class VScrollTable extends FlowPanel implements HasWidgets, return contentAreaBorderHeight; } + @Override + public void setHeight(String height) { + if (height.length() == 0 + && getElement().getStyle().getHeight().length() != 0) { + /* + * Changing from defined to undefined size -> should do a size init + * to take page length into account again + */ + sizeNeedsInit = true; + } + super.setHeight(height); + } + void updateHeight() { setContainerHeight();