overflow: auto;
/* avoid scrollbars with margins in root layout */
outline: none;
+ position: relative;
+}
+/* Prevent margin collapse */
+.v-view.v-view-embedded {
margin-top: -1px;
border-top: 1px solid transparent;
- position: relative;
- box-sizing: border-box;
- -moz-box-sizing: border-box;
}
/**
* Try to handle printing somehow. Reasonable printing support
styles += style + " ";
}
}
+ if (!client.getConfiguration().isStandalone()) {
+ styles += getWidget().getStylePrimaryName() + "-embedded";
+ }
getWidget().setStyleName(styles.trim());
clickEventHandler.handleEventHandlerRegistration(client);
<td>/run/com.vaadin.tests.components.embedded.EmbeddedClickListenerRelativeCoordinates?restartApplication</td>
<td></td>
</tr>
-<tr>
- <td>waitForVaadin</td>
- <td></td>
- <td></td>
-</tr>
<tr>
<td>mouseClick</td>
<td>vaadin=runcomvaadintestscomponentsembeddedEmbeddedClickListenerRelativeCoordinates::/VVerticalLayout[0]/ChildComponentContainer[1]/VVerticalLayout[0]/ChildComponentContainer[0]/VEmbedded[0]/domChild[0]</td>
<td>41,22</td>
</tr>
<tr>
- <td>waitForVaadin</td>
- <td></td>
- <td></td>
-</tr>
-<tr>
- <td>screenCapture</td>
- <td></td>
- <td>click-41-22</td>
-</tr>
-<!-- Should really be 41,22 but due to v-view border-top it is not always... <tr>
<td>assertText</td>
<td>vaadin=runcomvaadintestscomponentsembeddedEmbeddedClickListenerRelativeCoordinates::Root/VNotification[0]/HTML[0]/domChild[0]</td>
<td>41, 22</td>
-</tr>-->
+</tr>
<tr>
<td>mouseClick</td>
<td>vaadin=runcomvaadintestscomponentsembeddedEmbeddedClickListenerRelativeCoordinates::Root/VNotification[0]</td>
<td>0,0</td>
</tr>
<tr>
- <td>waitForVaadin</td>
- <td></td>
+ <td>waitForElementNotPresent</td>
+ <td>vaadin=runcomvaadintestscomponentsembeddedEmbeddedClickListenerRelativeCoordinates::Root/VNotification[0]/HTML[0]/domChild[0]</td>
<td></td>
</tr>
<tr>
<td>0,0</td>
</tr>
<tr>
- <td>waitForVaadin</td>
- <td></td>
- <td></td>
-</tr>
-<!-- Should really be 0,0 but due to v-view border-top it is not always... <tr>
<td>assertText</td>
<td>vaadin=runcomvaadintestscomponentsembeddedEmbeddedClickListenerRelativeCoordinates::Root/VNotification[0]/HTML[0]/domChild[0]</td>
<td>0, 0</td>
-</tr>-->
-<tr>
- <td>screenCapture</td>
- <td></td>
- <td>click-0-0</td>
</tr>
</tbody></table>
</body>