]> source.dussan.org Git - vaadin-framework.git/commitdiff
Fixes various bugs where tabsheet didn't repaint itself correctly
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 6 May 2008 07:32:37 +0000 (07:32 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Tue, 6 May 2008 07:32:37 +0000 (07:32 +0000)
svn changeset:4337/svn branch:trunk

src/com/itmill/toolkit/ui/TabSheet.java

index 2343b5452ac324952dfd0aa8c9eb5206bdcec2db..18f9216a23b490dd80240ad3c21178924972ece4 100644 (file)
@@ -228,6 +228,13 @@ public class TabSheet extends AbstractComponentContainer implements
             if (c.equals(selected)) {
                 target.addAttribute("selected", true);
                 c.paint(target);
+            } else {
+                /*
+                 * Component is kind of painted (caption, enabled, icon ...)
+                 * without paint methdod, so we must manually clear unpainted
+                 * flag.
+                 */
+                c.requestRepaintRequests();
             }
             target.endTag("tab");
         }