]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed test DOM path resolution
authorJohn Ahlroos <john@vaadin.com>
Tue, 4 Sep 2012 12:18:26 +0000 (15:18 +0300)
committerJohn Ahlroos <john@vaadin.com>
Tue, 4 Sep 2012 12:18:26 +0000 (15:18 +0300)
client/src/com/vaadin/client/ComponentLocator.java

index 5c52c4ebccfbd68fd91cf0f23670df991afb5a65..694c57ed5c9c6b7faf001b30f310986b9f0924da 100644 (file)
@@ -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