]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed ComponentLocator in the case where tests refer to an
authorJohn Ahlroos <john@vaadin.com>
Wed, 5 Sep 2012 08:42:56 +0000 (11:42 +0300)
committerJohn Ahlroos <john@vaadin.com>
Wed, 5 Sep 2012 08:42:56 +0000 (11:42 +0300)
AbsolutePanel inside a Gridlayout which has been removed.

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

index 6cdccc0ff0aebef16024a86bfa72b023e0f17890..f57946eea8a7e92b8ec30ccab39309b9803e4e3c 100644 (file)
@@ -537,6 +537,11 @@ public class ComponentLocator {
                     String[] nextSplit = nextPart.split("\\[", 2);
                     String nextWidgetClassName = nextSplit[0];
 
+                    if ("VVerticalLayout".equals(nextWidgetClassName)
+                            || "VHorizontalLayout".equals(nextWidgetClassName)) {
+                        nextWidgetClassName = "VBoxLayout";
+                    }
+
                     // Find the n:th child and count the number of children with
                     // the same type before it
                     int nextIndex = 0;