diff options
author | John Ahlroos <john@vaadin.com> | 2012-09-05 13:54:52 +0300 |
---|---|---|
committer | John Ahlroos <john@vaadin.com> | 2012-09-05 13:54:52 +0300 |
commit | e517a95a338d60bf8c63480b4a919f03ee2ff61b (patch) | |
tree | 54df040657222a9ca9224416fb47f176c6a6c610 | |
parent | 8f361a20c50411a152ed678a5727fddf58f55ffb (diff) | |
download | vaadin-framework-e517a95a338d60bf8c63480b4a919f03ee2ff61b.tar.gz vaadin-framework-e517a95a338d60bf8c63480b4a919f03ee2ff61b.zip |
Fixed interpreting caption domNode paths in VBoxLayout in
ComponentLocator
-rw-r--r-- | client/src/com/vaadin/client/ComponentLocator.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/client/src/com/vaadin/client/ComponentLocator.java b/client/src/com/vaadin/client/ComponentLocator.java index f57946eea8..42b54ca49c 100644 --- a/client/src/com/vaadin/client/ComponentLocator.java +++ b/client/src/com/vaadin/client/ComponentLocator.java @@ -271,9 +271,14 @@ public class ComponentLocator { part.length() - 1); if (Util.findWidget(baseElement, null) instanceof VBoxLayout) { - Element e = baseElement.getFirstChildElement().cast(); - if (e.getClassName().equals("v-expand")) { - element = e; + if (element.hasChildNodes()) { + Element e = element.getFirstChildElement().cast(); + String cn = e.getClassName(); + if (cn != null + && (cn.equals("v-expand") || cn + .contains("v-has-caption"))) { + element = e; + } } } |