diff options
author | Juho Nurminen <juho@vaadin.com> | 2013-12-05 07:28:37 +0200 |
---|---|---|
committer | Juho Nurminen <juho@vaadin.com> | 2013-12-05 07:28:51 +0200 |
commit | 5b56eeb521fdb92df5434647a8db27f0a45f09b9 (patch) | |
tree | ca286d6f498efb009009447c27dcf6dbb5dbfd67 /client | |
parent | 401fa5c940d9b55a4f0b3f96db5990d57271fe82 (diff) | |
download | vaadin-framework-5b56eeb521fdb92df5434647a8db27f0a45f09b9.tar.gz vaadin-framework-5b56eeb521fdb92df5434647a8db27f0a45f09b9.zip |
Changed the rendering order of TabSheet tabs to prevent an NPE in isClipped (#12343)
Change-Id: Ife96ff3fe0c3f9c8926cf96eab4f5dfca99e925e
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ui/VTabsheet.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/client/src/com/vaadin/client/ui/VTabsheet.java b/client/src/com/vaadin/client/ui/VTabsheet.java index a930ac5b58..379b6107f4 100644 --- a/client/src/com/vaadin/client/ui/VTabsheet.java +++ b/client/src/com/vaadin/client/ui/VTabsheet.java @@ -840,6 +840,10 @@ public class VTabsheet extends VTabsheetBase implements Focusable, if (tab == null) { tab = tb.addTab(); } + if (selected) { + renderContent(tabUidl.getChildUIDL(0)); + tb.selectTab(index); + } tab.updateFromUIDL(tabUidl); tab.setEnabledOnServer((!disabledTabKeys.contains(tabKeys.get(index)))); tab.setHiddenOnServer(hidden); @@ -856,11 +860,6 @@ public class VTabsheet extends VTabsheetBase implements Focusable, * and tabs won't be too narrow in certain browsers */ tab.recalculateCaptionWidth(); - - if (selected) { - renderContent(tabUidl.getChildUIDL(0)); - tb.selectTab(index); - } } /** |