]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixed problem with Panel not repainting its contents (#8700)
authorArtur Signell <artur@vaadin.com>
Thu, 19 Apr 2012 14:15:34 +0000 (17:15 +0300)
committerArtur Signell <artur@vaadin.com>
Thu, 19 Apr 2012 19:10:39 +0000 (22:10 +0300)
src/com/vaadin/ui/AbstractComponentContainer.java

index e3466e90d34c66a3e89aeb04e15cff71abddc220..1c857a03cde27618674794fa8f035e13583702a1 100644 (file)
@@ -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();