]> source.dussan.org Git - vaadin-framework.git/commitdiff
Revert to running updateWidth from layoutHorizontally (#8313)
authorLeif Åstrand <leif@vaadin.com>
Mon, 12 Mar 2012 14:04:37 +0000 (16:04 +0200)
committerLeif Åstrand <leif@vaadin.com>
Mon, 12 Mar 2012 14:04:37 +0000 (16:04 +0200)
src/com/vaadin/terminal/gwt/client/ui/TableConnector.java
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index b2a183ac5a60b57deb9c2383a5e85211f4511a1d..0aa6879802ebb4223d25e652586671bb0dde01e0 100644 (file)
@@ -256,7 +256,7 @@ public class TableConnector extends AbstractComponentContainerConnector
     }
 
     public void layoutHorizontally() {
-        // getWidget().updateWidth();
+        getWidget().updateWidth();
     }
 
     public void postLayout() {
index e2d52f76fdc9866e07b09eb9353a2dfeb2770a66..6a08ccb7dfc98a62752e24a7aa87ecf562d5b748 100644 (file)
@@ -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()) {
             /*