From 66ec898f657847e219fd150c1ca9b3ccd07dbe4e Mon Sep 17 00:00:00 2001 From: Matti Tahvonen Date: Fri, 2 Jul 2010 14:48:59 +0000 Subject: fixes #5278 svn changeset:14045/svn branch:6.4 --- src/com/vaadin/ui/AbstractComponent.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/com/vaadin/ui/AbstractComponent.java b/src/com/vaadin/ui/AbstractComponent.java index f4d7aa3238..0875355c73 100644 --- a/src/com/vaadin/ui/AbstractComponent.java +++ b/src/com/vaadin/ui/AbstractComponent.java @@ -633,6 +633,14 @@ public abstract class AbstractComponent implements Component, MethodEventSource */ public void attach() { requestRepaint(); + if (!visible) { + /* + * Bypass the repaint optimization in childRequestedRepaint method + * when attaching. When reattaching (possibly moving) -> must + * repaint + */ + fireRequestRepaintEvent(null); + } if (delayedFocus) { focus(); } -- cgit v1.2.3