From 6f03d2c4c94374143c9c8fab9c375f780b3064c0 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Thu, 19 Apr 2012 17:15:34 +0300 Subject: [PATCH] Fixed problem with Panel not repainting its contents (#8700) --- src/com/vaadin/ui/AbstractComponentContainer.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/com/vaadin/ui/AbstractComponentContainer.java b/src/com/vaadin/ui/AbstractComponentContainer.java index e3466e90d3..1c857a03cd 100644 --- a/src/com/vaadin/ui/AbstractComponentContainer.java +++ b/src/com/vaadin/ui/AbstractComponentContainer.java @@ -368,6 +368,15 @@ public abstract class AbstractComponentContainer extends AbstractComponent */ public static void requestRepaintAll(HasComponents container) { container.requestRepaint(); + if (container instanceof Panel) { + Panel p = (Panel) container; + // #2924 Panel is invalid, really invalid. + // Panel.getComponentIterator returns the children of content, not + // of Panel... + if (p.getContent() != null) { + p.getContent().requestRepaint(); + } + } for (Iterator childIterator = container .getComponentIterator(); childIterator.hasNext();) { Component c = childIterator.next(); -- 2.39.5