From: Matti Tahvonen Date: Mon, 28 Dec 2009 15:10:55 +0000 (+0000) Subject: fixes #3840, debug identifiers now in dom for invisible components X-Git-Tag: 6.7.0.beta1~2084^2~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=743772f56b59ef7f09d3637c877883e7b4e90289;p=vaadin-framework.git fixes #3840, debug identifiers now in dom for invisible components svn changeset:10561/svn branch:6.2 --- diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java index c13a9d60ba..a523e8b00e 100755 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java @@ -1473,6 +1473,11 @@ public class ApplicationConnection { } } + if (configuration.useDebugIdInDOM() && uidl.getId().startsWith("PID_S")) { + DOM.setElementProperty(component.getElement(), "id", uidl.getId() + .substring(5)); + } + if (!visible) { // component is invisible, delete old size to notify parent, if // later make visible @@ -1574,12 +1579,6 @@ public class ApplicationConnection { parent.updateCaption((Paintable) component, uidl); } } - - if (configuration.useDebugIdInDOM() && uidl.getId().startsWith("PID_S")) { - DOM.setElementProperty(component.getElement(), "id", uidl.getId() - .substring(5)); - } - /* * updateComponentSize need to be after caption update so caption can be * taken into account