From dcc700bfa4076b02fd61a2334900fd19fa34f412 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Wed, 14 Mar 2012 16:07:26 +0200 Subject: [PATCH] Run sizeInit when changing to undefined height (#8525) --- .../vaadin/terminal/gwt/client/ui/VScrollTable.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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(); -- 2.39.5