targetElement = targetNode.getParentElement();
}
- if (Util.isTouchEvent(nativeEvent)
- || (dragElement != null && dragElement
- .isOrHasChild(targetElement))) {
+ if (Util.isTouchEvent(nativeEvent) || dragElement != null) {
// to detect the "real" target, hide dragelement temporary and
// use elementFromPoint
String display = dragElement.getStyle().getDisplay();
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<link rel="selenium.base" href="http://localhost:8888/" />
<title>DragAndDropDisable</title>
</head>
<body>
</tr>
<tr>
<td>drag</td>
- <td>vaadin=runDragAndDropDisable::/VVerticalLayout[0]/Slot[1]/VVerticalLayout[0]/Slot[2]/VPanel[0]/VDragAndDropWrapper[0]/VCssLayout[0]</td>
+ <td>vaadin=runDragAndDropDisable::PID_Scsslayout-2</td>
<td>18,25</td>
</tr>
<tr>
<td>drop</td>
- <td>vaadin=runDragAndDropDisable::/VVerticalLayout[0]/Slot[1]/VVerticalLayout[0]/Slot[0]/VPanel[0]/VDragAndDropWrapper[0]/VCssLayout[0]</td>
+ <td>vaadin=runDragAndDropDisable::PID_Scsslayout-1</td>
<td>34,51</td>
</tr>
<tr>
</tr>
<tr>
<td>drag</td>
- <td>vaadin=runDragAndDropDisable::/VVerticalLayout[0]/Slot[1]/VVerticalLayout[0]/Slot[2]/VPanel[0]/VDragAndDropWrapper[0]/VCssLayout[0]</td>
+ <td>vaadin=runDragAndDropDisable::PID_Scsslayout-2</td>
<td>20,32</td>
</tr>
<tr>
<td>drop</td>
- <td>vaadin=runDragAndDropDisable::/VVerticalLayout[0]/Slot[1]/VVerticalLayout[0]/Slot[0]/VPanel[0]/VDragAndDropWrapper[0]/VCssLayout[0]</td>
+ <td>vaadin=runDragAndDropDisable::PID_Scsslayout-1</td>
<td>37,59</td>
</tr>
<tr>
<td>drag</td>
- <td>vaadin=runDragAndDropDisable::/VVerticalLayout[0]/Slot[1]/VVerticalLayout[0]/Slot[0]/VPanel[0]/VDragAndDropWrapper[0]/VCssLayout[0]/VLabel[0]</td>
+ <td>vaadin=runDragAndDropDisable::PID_Scsslayout-1/VLabel[0]</td>
<td>59,10</td>
</tr>
<tr>
<td>drop</td>
- <td>vaadin=runDragAndDropDisable::/VVerticalLayout[0]/Slot[1]/VVerticalLayout[0]/Slot[2]/VPanel[0]/VDragAndDropWrapper[0]/VCssLayout[0]</td>
+ <td>vaadin=runDragAndDropDisable::PID_Scsslayout-2</td>
<td>68,15</td>
</tr>
<tr>
<td>mouseClick</td>
- <td>vaadin=runDragAndDropDisable::/VVerticalLayout[0]/Slot[1]/VVerticalLayout[0]/Slot[0]/VPanel[0]/VDragAndDropWrapper[0]/VCssLayout[0]/VLabel[0]</td>
+ <td>vaadin=runDragAndDropDisable::PID_Scsslayout-1/VLabel[0]</td>
<td>68,160</td>
</tr>
<tr>
</tr>
<tr>
<td>drop</td>
- <td>vaadin=runDragAndDropDisable::/VVerticalLayout[0]/Slot[1]/VVerticalLayout[0]/Slot[0]/VPanel[0]/VDragAndDropWrapper[0]/VCssLayout[0]</td>
+ <td>vaadin=runDragAndDropDisable::PID_Scsslayout-1</td>
<td>118,50</td>
</tr>
<tr>
addComponent(p);
final CssLayout layout = new CssLayout();
+ layout.setId("csslayout-1");
layout.setHeight("100px");
final DragAndDropWrapper dnd = new DragAndDropWrapper(layout);
+ dnd.setId("ddwrapper-1");
p.setContent(dnd);
final CheckBox enabled = new CheckBox("Enabled", true);
addComponent(p);
final CssLayout layout = new CssLayout();
+ layout.setId("csslayout-2");
layout.setHeight("100px");
final DragAndDropWrapper dnd = new DragAndDropWrapper(layout);
+ dnd.setId("ddwrapper-2");
p.setContent(dnd);
final CheckBox enabled = new CheckBox("Enabled", true);