diff options
-rw-r--r-- | client/src/com/vaadin/client/ComponentLocator.java | 5 |
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; |