From 6171b26423edf8574c0c15219df346cc8d9ebd21 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 12 Apr 2012 16:27:45 +0300 Subject: [PATCH] Ensure Table parent is measured after sizeInit This is needed to take scrollbars into account --- src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.39.5