summaryrefslogtreecommitdiffstats
path: root/src/com/vaadin/ui/TabSheet.java
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2011-09-13 13:37:55 +0000
committerLeif Åstrand <leif@vaadin.com>2011-09-13 13:37:55 +0000
commitd31d699eb4c939fa78bb906e018da45e019c9eea (patch)
tree5ad9c197b79d6c86bcacbf05ddfc154efb43dee7 /src/com/vaadin/ui/TabSheet.java
parent9778741d2e2af87276639deacc6b61060d344468 (diff)
downloadvaadin-framework-d31d699eb4c939fa78bb906e018da45e019c9eea.tar.gz
vaadin-framework-d31d699eb4c939fa78bb906e018da45e019c9eea.zip
#2669 Tabsheet failes to render cached tab
svn changeset:20992/svn branch:6.7
Diffstat (limited to 'src/com/vaadin/ui/TabSheet.java')
-rw-r--r--src/com/vaadin/ui/TabSheet.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/vaadin/ui/TabSheet.java b/src/com/vaadin/ui/TabSheet.java
index 300e507fdd..a7db4cdbd3 100644
--- a/src/com/vaadin/ui/TabSheet.java
+++ b/src/com/vaadin/ui/TabSheet.java
@@ -414,8 +414,13 @@ public class TabSheet extends AbstractComponentContainer {
target.addAttribute("key", keyMapper.key(component));
if (component.equals(selected)) {
target.addAttribute("selected", true);
+ if (!paintedTabs.contains(component)) {
+ // Ensure the component is painted if it hasn't already been
+ // painted in this tabsheet
+ component.requestRepaint();
+ paintedTabs.add(component);
+ }
component.paint(target);
- paintedTabs.add(component);
} else if (paintedTabs.contains(component)) {
component.paint(target);
} else {