From 087f7666d59f10884ead2cb085c8df372d4f509f Mon Sep 17 00:00:00 2001 From: Johannes Dahlström Date: Fri, 15 Jun 2012 11:56:15 +0000 Subject: #7938 Clarified Window.center() javadoc svn changeset:23949/svn branch:6.8 --- src/com/vaadin/ui/Window.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/com/vaadin/ui/Window.java b/src/com/vaadin/ui/Window.java index f20090fead..347f2725fe 100644 --- a/src/com/vaadin/ui/Window.java +++ b/src/com/vaadin/ui/Window.java @@ -1618,8 +1618,10 @@ public class Window extends Panel implements URIHandler, ParameterHandler, } /** - * Request to center this window on the screen. Note: affects - * sub-windows only. + * Sets this window to be centered relative to its parent window. Affects + * sub-windows only. If the window is resized as a result of the size of its + * content changing, it will keep itself centered as long as its position is + * not explicitly changed programmatically or by the user. */ public void center() { centerRequested = true; -- cgit v1.2.3