From e49c78d450d23f1bb9b571a483201a6e587c885c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Mon, 12 Mar 2012 16:04:37 +0200 Subject: [PATCH] Revert to running updateWidth from layoutHorizontally (#8313) --- .../vaadin/terminal/gwt/client/ui/TableConnector.java | 2 +- src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java | 9 --------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ui/TableConnector.java b/src/com/vaadin/terminal/gwt/client/ui/TableConnector.java index b2a183ac5a..0aa6879802 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/TableConnector.java +++ b/src/com/vaadin/terminal/gwt/client/ui/TableConnector.java @@ -256,7 +256,7 @@ public class TableConnector extends AbstractComponentContainerConnector } public void layoutHorizontally() { - // getWidget().updateWidth(); + getWidget().updateWidth(); } public void postLayout() { diff --git a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java index e2d52f76fd..6a08ccb7df 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java @@ -5517,15 +5517,6 @@ public class VScrollTable extends FlowPanel implements HasWidgets, } - @Override - public void setWidth(String width) { - String oldWidth = getElement().getStyle().getWidth(); - if (!oldWidth.equals(width)) { - super.setWidth(width); - updateWidth(); - } - } - void updateWidth() { if (!isVisible()) { /* -- 2.39.5