From 60ddbbf566607cef5a67d35252c62629261933df Mon Sep 17 00:00:00 2001 From: Anna Miroshnik Date: Fri, 14 Nov 2014 13:46:12 +0300 Subject: Delayed column layouting is visible (#15189) Full Name of defect: Regression: Table column jumps when table is shown and table is contained in a layout Regression is a outcome of change due to #12672. No TB4 test because problem happens too fast to be caught. Change-Id: I9af5ed3c11e0fb673c7f2f1c5fd4739bd4b8c655 --- .../ui/orderedlayout/AbstractOrderedLayoutConnector.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'client/src') diff --git a/client/src/com/vaadin/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java b/client/src/com/vaadin/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java index aace349392..0c09ae49c6 100644 --- a/client/src/com/vaadin/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java +++ b/client/src/com/vaadin/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java @@ -152,20 +152,7 @@ public abstract class AbstractOrderedLayoutConnector extends public void onElementResize(ElementResizeEvent e) { updateLayoutHeight(); if (needsExpand()) { - /* - * updateLayoutHeight causes calling of - * getLayoutManager().setNeedsMeasure(this) which informs this - * LayoutManager that the size of a component might have - * changed. Then a new layout phase is scheduled. So - * updateExpandCompensation must be delayed until layout phase - * will be completed. #12672 - */ - Scheduler.get().scheduleFinally(new ScheduledCommand() { - @Override - public void execute() { - getWidget().updateExpandCompensation(); - } - }); + getWidget().updateExpandCompensation(); } } }; -- cgit v1.2.3