summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2012-09-05 11:42:56 +0300
committerJohn Ahlroos <john@vaadin.com>2012-09-05 11:42:56 +0300
commit6744d2c1144301f0c36ed45356319117ebea8aae (patch)
tree15ed2a63a8a790415da0021ad5f883b358ace9e8 /client
parentef6576951baf5ab1edab74b878a03c49d74cdbd6 (diff)
downloadvaadin-framework-6744d2c1144301f0c36ed45356319117ebea8aae.tar.gz
vaadin-framework-6744d2c1144301f0c36ed45356319117ebea8aae.zip
Fixed ComponentLocator in the case where tests refer to an
AbsolutePanel inside a Gridlayout which has been removed.
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ComponentLocator.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ComponentLocator.java b/client/src/com/vaadin/client/ComponentLocator.java
index 6cdccc0ff0..f57946eea8 100644
--- a/client/src/com/vaadin/client/ComponentLocator.java
+++ b/client/src/com/vaadin/client/ComponentLocator.java
@@ -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;