summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2013-01-14 20:07:48 +0000
committerVaadin Code Review <review@vaadin.com>2013-01-14 20:07:48 +0000
commitf2ccb14cde370c61a05972a9b4835bba8b059cad (patch)
treec9bed34ea63c870ddd0bd9495a4e47cd07561fcc
parentcc39c3db5895fb950814b97d6db5c1712fd8e078 (diff)
parent21256faaf1cbf04bf87204e11975d20527bf5e2e (diff)
downloadvaadin-framework-f2ccb14cde370c61a05972a9b4835bba8b059cad.tar.gz
vaadin-framework-f2ccb14cde370c61a05972a9b4835bba8b059cad.zip
Merge "Add close element after caption text (#10682)"
-rw-r--r--client/src/com/vaadin/client/ui/VTabsheet.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ui/VTabsheet.java b/client/src/com/vaadin/client/ui/VTabsheet.java
index e20310408b..cd3ed8287e 100644
--- a/client/src/com/vaadin/client/ui/VTabsheet.java
+++ b/client/src/com/vaadin/client/ui/VTabsheet.java
@@ -318,8 +318,7 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
closeButton.setInnerHTML("&times;");
closeButton
.setClassName(VTabsheet.CLASSNAME + "-caption-close");
- getElement().insertBefore(closeButton,
- getElement().getLastChild());
+ getElement().appendChild(closeButton);
} else if (!closable && closeButton != null) {
getElement().removeChild(closeButton);
closeButton = null;