aboutsummaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-02-08 14:00:48 +0000
committerVaadin Code Review <review@vaadin.com>2013-02-08 14:00:48 +0000
commitb4a56a8066ead5f05883b2a4e1007dc7b51ea190 (patch)
treee8b5a762d864034379c46236807fbf82016f3620 /client/src
parentc25f223ba24618aeb02e8a2062ef4bad961f56b1 (diff)
parent91a04460db80dc505730c0deb5ac451235ace54e (diff)
downloadvaadin-framework-b4a56a8066ead5f05883b2a4e1007dc7b51ea190.tar.gz
vaadin-framework-b4a56a8066ead5f05883b2a4e1007dc7b51ea190.zip
Merge "Add "v-overlay-container" class name to the overlay container for easier customization (related to #10860)" into 7.0
Diffstat (limited to 'client/src')
-rw-r--r--client/src/com/vaadin/client/ui/VOverlay.java17
1 files changed, 12 insertions, 5 deletions
diff --git a/client/src/com/vaadin/client/ui/VOverlay.java b/client/src/com/vaadin/client/ui/VOverlay.java
index 83abccf2bb..d35201460e 100644
--- a/client/src/com/vaadin/client/ui/VOverlay.java
+++ b/client/src/com/vaadin/client/ui/VOverlay.java
@@ -112,21 +112,27 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
private static int topFix = -1;
- /*
+ /**
* Shadow element style. If an extending class wishes to use a different
* style of shadow, it can use setShadowStyle(String) to give the shadow
* element a new style name.
*/
public static final String CLASSNAME_SHADOW = "v-shadow";
+ /**
+ * Style name for the overlay container element (see
+ * {@link #getOverlayContainer()}
+ */
+ public static final String CLASSNAME_CONTAINER = "v-overlay-container";
+
/*
* The shadow element for this overlay.
*/
private Element shadow;
/*
- * Creator of VOverlow (widget that made the instance, not the layout
- * parent)
+ * The creator of this VOverlay (the widget that made the instance, not the
+ * layout parent)
*/
private Widget owner;
@@ -650,7 +656,7 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
if (ac == null) {
// could not figure out which one we belong to, styling will
// probably fail
- VConsole.error("Could not determin ApplicationConnection for Overlay. Overlay will be attached directly to the root panel");
+ VConsole.error("Could not determine ApplicationConnection for Overlay. Overlay will be attached directly to the root panel");
return RootPanel.get().getElement();
} else {
return getOverlayContainer(ac);
@@ -676,7 +682,8 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
container.setId(id);
String styles = ac.getUIConnector().getWidget().getParent()
.getStyleName();
- container.setClassName(styles);
+ container.addClassName(styles);
+ container.addClassName(CLASSNAME_CONTAINER);
RootPanel.get().getElement().appendChild(container);
}
return container;