From 6d4db41f6b04ffe4810292e5e4c47e5c91ded827 Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Tue, 3 Nov 2009 07:20:21 +0000 Subject: [PATCH] Merged VPopupView showPopupView javadoc from 6.1 svn changeset:9589/svn branch:6.2 --- src/com/vaadin/terminal/gwt/client/ui/VPopupView.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/com/vaadin/terminal/gwt/client/ui/VPopupView.java b/src/com/vaadin/terminal/gwt/client/ui/VPopupView.java index 36706bdede..630302eeaf 100644 --- a/src/com/vaadin/terminal/gwt/client/ui/VPopupView.java +++ b/src/com/vaadin/terminal/gwt/client/ui/VPopupView.java @@ -150,6 +150,17 @@ public class VPopupView extends HTML implements Container, Iterable { popup.show(); } + /** + * Determines the correct position for a popup and displays the popup at + * that position. + * + * By default, the popup is shown centered relative to its host component, + * ensuring it is visible on the screen if possible. + * + * Can be overridden to customize the popup position. + * + * @param popup + */ protected void showPopup(final CustomPopup popup) { int windowTop = RootPanel.get().getAbsoluteTop(); int windowLeft = RootPanel.get().getAbsoluteLeft(); -- 2.39.5