diff options
Diffstat (limited to 'src/com/vaadin/ui/AbstractComponent.java')
-rw-r--r-- | src/com/vaadin/ui/AbstractComponent.java | 8 |
1 files changed, 8 insertions, 0 deletions
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(); } |