diff options
author | Artur Signell <artur@vaadin.com> | 2012-04-19 17:15:34 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2012-04-19 22:10:39 +0300 |
commit | 6f03d2c4c94374143c9c8fab9c375f780b3064c0 (patch) | |
tree | 9962f4b637fd4ea07732bf0b5adefe519cd9dd4f | |
parent | 7de29d3b3d51ae642a73b0d595cf0f49ac32ddef (diff) | |
download | vaadin-framework-6f03d2c4c94374143c9c8fab9c375f780b3064c0.tar.gz vaadin-framework-6f03d2c4c94374143c9c8fab9c375f780b3064c0.zip |
Fixed problem with Panel not repainting its contents (#8700)
-rw-r--r-- | src/com/vaadin/ui/AbstractComponentContainer.java | 9 |
1 files changed, 9 insertions, 0 deletions
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<Component> childIterator = container .getComponentIterator(); childIterator.hasNext();) { Component c = childIterator.next(); |