From: Leif Åstrand Date: Thu, 13 Dec 2012 09:03:50 +0000 (+0200) Subject: Fix selector backwards compatibility (#9893) X-Git-Tag: 7.0.0.beta11~45 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F89%2F489%2F3;p=vaadin-framework.git Fix selector backwards compatibility (#9893) Change-Id: Ib69645f9cc866893b8a85e369414b7c15b440b6e --- diff --git a/client/src/com/vaadin/client/ComponentLocator.java b/client/src/com/vaadin/client/ComponentLocator.java index 249c3f78f4..16e8859d01 100644 --- a/client/src/com/vaadin/client/ComponentLocator.java +++ b/client/src/com/vaadin/client/ComponentLocator.java @@ -24,7 +24,6 @@ import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Element; import com.google.gwt.user.client.ui.HasWidgets; import com.google.gwt.user.client.ui.RootPanel; -import com.google.gwt.user.client.ui.SimplePanel; import com.google.gwt.user.client.ui.Widget; import com.vaadin.client.ui.SubPartAware; import com.vaadin.client.ui.VCssLayout; @@ -562,10 +561,11 @@ public class ComponentLocator { continue; } - // ChildComponentContainer has been removed and replaced with - // Slot + // ChildComponentContainer and VOrderedLayout$Slot have been + // replaced with Slot if (w instanceof VAbstractOrderedLayout - && "ChildComponentContainer".equals(widgetClassName)) { + && ("ChildComponentContainer".equals(widgetClassName) || "VOrderedLayout$Slot" + .equals(widgetClassName))) { widgetClassName = "Slot"; } @@ -662,18 +662,6 @@ public class ComponentLocator { } widgetPosition--; - } else if (w instanceof VAbstractOrderedLayout - && "Slot".equals(simpleName2)) { - child = ((SimplePanel) child).getWidget(); - simpleName2 = Util.getSimpleName(child); - if (widgetClassName.equals(simpleName2)) { - if (widgetPosition == 0) { - w = child; - ok = true; - break; - } - widgetPosition--; - } } }