From: Leif Åstrand Date: Wed, 11 Apr 2012 12:18:22 +0000 (+0300) Subject: Avoid infinite loop by only updating table height in second pass X-Git-Tag: 7.0.0.alpha2~65^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=956b514e197bf274ba8a69d582681251272317d4;p=vaadin-framework.git Avoid infinite loop by only updating table height in second pass --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/TableConnector.java b/src/com/vaadin/terminal/gwt/client/ui/TableConnector.java index 2c546f40b1..a0db9cd3f9 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/TableConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/TableConnector.java @@ -285,7 +285,8 @@ public class TableConnector extends AbstractComponentContainerConnector table.sizeInit(); Scheduler.get().scheduleFinally(new ScheduledCommand() { public void execute() { - getLayoutManager().setNeedsUpdate(TableConnector.this); + getLayoutManager() + .setHeightNeedsUpdate(TableConnector.this); getLayoutManager().layoutNow(); } });