summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-02-08 16:42:37 +0200
committerLeif Åstrand <leif@vaadin.com>2012-02-08 16:42:37 +0200
commit84b8e9d9c1a2d861e5b8fba6696469359b09706b (patch)
tree9aae850b23dc63c303ab2a84ab19faa783365c43 /src
parentcfe6e9b760b34ebb2ea1bbaf9531cbba2dc2ac5c (diff)
downloadvaadin-framework-84b8e9d9c1a2d861e5b8fba6696469359b09706b.tar.gz
vaadin-framework-84b8e9d9c1a2d861e5b8fba6696469359b09706b.zip
Remove unused ApplicationConnection.updateComponentSize (#8313)
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/terminal/gwt/client/ApplicationConnection.java33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
index 9408879b35..f438e27f78 100644
--- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
+++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
@@ -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;
/**