summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Ahlroos <john@vaadin.com>2012-09-04 15:18:26 +0300
committerJohn Ahlroos <john@vaadin.com>2012-09-04 15:18:26 +0300
commite5ce22479bc99f39821497f726ee3b0c1a85bbbd (patch)
treed32d31e5d5eb2ff7480e9f74455b66547dbaabf9
parent4ddad499f9634c320d092589d57a0f3d55993d39 (diff)
downloadvaadin-framework-e5ce22479bc99f39821497f726ee3b0c1a85bbbd.tar.gz
vaadin-framework-e5ce22479bc99f39821497f726ee3b0c1a85bbbd.zip
Fixed test DOM path resolution
-rw-r--r--client/src/com/vaadin/client/ComponentLocator.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ComponentLocator.java b/client/src/com/vaadin/client/ComponentLocator.java
index 5c52c4ebcc..694c57ed5c 100644
--- a/client/src/com/vaadin/client/ComponentLocator.java
+++ b/client/src/com/vaadin/client/ComponentLocator.java
@@ -28,6 +28,7 @@ import com.google.gwt.user.client.ui.Widget;
import com.vaadin.client.ui.SubPartAware;
import com.vaadin.client.ui.UI.VUI;
import com.vaadin.client.ui.gridlayout.VGridLayout;
+import com.vaadin.client.ui.orderedlayout.VBoxLayout;
import com.vaadin.client.ui.orderedlayout.VMeasuringOrderedLayout;
import com.vaadin.client.ui.tabsheet.VTabsheetPanel;
import com.vaadin.client.ui.window.VWindow;
@@ -499,6 +500,11 @@ public class ComponentLocator {
widgetClassName = "VBoxLayout";
}
+ if (w instanceof VBoxLayout
+ && "ChildComponentContainer".equals(widgetClassName)) {
+ widgetClassName = "VBoxLayout$Slot";
+ }
+
if (w instanceof VTabsheetPanel && widgetPosition != 0) {
// TabSheetPanel now only contains 1 connector => the index
// is always 0 which indicates the widget in the active tab