summaryrefslogtreecommitdiffstats
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/com/vaadin/client/ui/VMenuBar.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ui/VMenuBar.java b/client/src/com/vaadin/client/ui/VMenuBar.java
index fb8ba013f7..b2b40c12f7 100644
--- a/client/src/com/vaadin/client/ui/VMenuBar.java
+++ b/client/src/com/vaadin/client/ui/VMenuBar.java
@@ -569,7 +569,7 @@ public class VMenuBar extends SimpleFocusablePanel implements
protected void showChildMenuAt(CustomMenuItem item, int top, int left) {
final int shadowSpace = 10;
- popup = new VOverlay(true, false, true);
+ popup = createOverlay();
popup.setOwner(this);
/*
@@ -633,6 +633,18 @@ public class VMenuBar extends SimpleFocusablePanel implements
}
+ /**
+ * Create an overlay for the menu bar.
+ *
+ * This method can be overridden to use a custom overlay.
+ *
+ * @since 7.6
+ * @return overlay to use
+ */
+ protected VOverlay createOverlay() {
+ return new VOverlay(true, false, true);
+ }
+
private int adjustPopupHeight(int top, final int shadowSpace) {
// Check that the popup will fit the screen
int availableHeight = RootPanel.getBodyElement().getOffsetHeight()