]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fix selector backwards compatibility (#9893) 89/489/3
authorLeif Åstrand <leif@vaadin.com>
Thu, 13 Dec 2012 09:03:50 +0000 (11:03 +0200)
committerLeif Åstrand <leif@vaadin.com>
Thu, 13 Dec 2012 09:03:50 +0000 (11:03 +0200)
Change-Id: Ib69645f9cc866893b8a85e369414b7c15b440b6e

client/src/com/vaadin/client/ComponentLocator.java

index 249c3f78f4777c13fc51848fe4c5b8437d14095a..16e8859d017c4da9999af0784046ba41966b7bb9 100644 (file)
@@ -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--;
-                        }
                     }
                 }