aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2012-09-05 10:30:17 +0300
committerJohn Ahlroos <john@vaadin.com>2012-09-05 10:30:17 +0300
commitb92a93f86a990a30a19cc7cae1b87fd35e262352 (patch)
treef571b0a5c776d91376cc9cbd4d68a9e88de63531 /client
parent025d8eae13bc3473b676ff1a534b28b5e812017d (diff)
downloadvaadin-framework-b92a93f86a990a30a19cc7cae1b87fd35e262352.tar.gz
vaadin-framework-b92a93f86a990a30a19cc7cae1b87fd35e262352.zip
Another fix to ComponentLocator, this time fixed locators with
VBoxLayout/domChild
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ComponentLocator.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ComponentLocator.java b/client/src/com/vaadin/client/ComponentLocator.java
index 017383e695..6cdccc0ff0 100644
--- a/client/src/com/vaadin/client/ComponentLocator.java
+++ b/client/src/com/vaadin/client/ComponentLocator.java
@@ -269,6 +269,14 @@ public class ComponentLocator {
if (part.startsWith("domChild[")) {
String childIndexString = part.substring("domChild[".length(),
part.length() - 1);
+
+ if (Util.findWidget(baseElement, null) instanceof VBoxLayout) {
+ Element e = baseElement.getFirstChildElement().cast();
+ if (e.getClassName().equals("v-expand")) {
+ element = e;
+ }
+ }
+
try {
int childIndex = Integer.parseInt(childIndexString);
element = DOM.getChild(element, childIndex);