]> source.dussan.org Git - vaadin-framework.git/commitdiff
Remove unused ApplicationConnection.updateComponentSize (#8313)
authorLeif Åstrand <leif@vaadin.com>
Wed, 8 Feb 2012 14:42:37 +0000 (16:42 +0200)
committerLeif Åstrand <leif@vaadin.com>
Wed, 8 Feb 2012 14:42:37 +0000 (16:42 +0200)
src/com/vaadin/terminal/gwt/client/ApplicationConnection.java

index 9408879b351528589c7ae5555f60e4ec37f03606..f438e27f78b3d6c43fe16bdd2e0477d807f78432 100644 (file)
@@ -19,7 +19,6 @@ import com.google.gwt.core.client.JsArray;
 import com.google.gwt.core.client.JsArrayString;
 import com.google.gwt.core.client.Scheduler;
 import com.google.gwt.core.client.Scheduler.ScheduledCommand;
-import com.google.gwt.dom.client.Style;
 import com.google.gwt.http.client.Request;
 import com.google.gwt.http.client.RequestBuilder;
 import com.google.gwt.http.client.RequestCallback;
@@ -1572,38 +1571,6 @@ public class ApplicationConnection {
         return result.toString();
     }
 
-    public void updateComponentSize(VPaintableWidget paintable, UIDL uidl) {
-        String w = uidl.hasAttribute("width") ? uidl
-                .getStringAttribute("width") : "";
-
-        String h = uidl.hasAttribute("height") ? uidl
-                .getStringAttribute("height") : "";
-
-        Widget component = paintableMap.getWidget(paintable);
-
-        Style style = component.getElement().getStyle();
-
-        // Dirty if either dimension changed between relative and non-relative
-        if (w.endsWith("%") != style.getWidth().endsWith("%")
-                || h.endsWith("%") != style.getHeight().endsWith("%")) {
-            MeasureManager.MeasuredSize measuredSize = paintable
-                    .getMeasuredSize();
-            if (measuredSize != null) {
-                measuredSize.setDirty(true);
-            }
-        }
-
-        // Set defined sizes
-        component.setHeight(h);
-        component.setWidth(w);
-    }
-
-    /**
-     * Traverses recursively child widgets until ContainerResizedListener child
-     * widget is found. They will delegate it further if needed.
-     * 
-     * @param container
-     */
     private boolean runningLayout = false;
 
     /**