From: Leif Åstrand Date: Mon, 12 Mar 2012 14:04:37 +0000 (+0200) Subject: Revert to running updateWidth from layoutHorizontally (#8313) X-Git-Tag: 7.0.0.alpha2~368 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e49c78d450d23f1bb9b571a483201a6e587c885c;p=vaadin-framework.git Revert to running updateWidth from layoutHorizontally (#8313) --- 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()) { /*