From: Artur Signell Date: Thu, 12 Apr 2012 13:27:45 +0000 (+0300) Subject: Ensure Table parent is measured after sizeInit X-Git-Tag: 7.0.0.alpha2~58 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6171b26423edf8574c0c15219df346cc8d9ebd21;p=vaadin-framework.git Ensure Table parent is measured after sizeInit This is needed to take scrollbars into account --- diff --git a/src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java b/src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java index 8d0cbdb448..b53ee469cc 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java @@ -289,6 +289,8 @@ public class TableConnector extends AbstractComponentContainerConnector Scheduler.get().scheduleFinally(new ScheduledCommand() { public void execute() { getLayoutManager().setNeedsMeasure(TableConnector.this); + getLayoutManager().setNeedsMeasure( + TableConnector.this.getParent()); getLayoutManager() .setHeightNeedsUpdate(TableConnector.this); getLayoutManager().layoutNow();