summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-01-14 21:46:10 +0200
committerArtur Signell <artur@vaadin.com>2013-01-14 21:52:18 +0200
commit21256faaf1cbf04bf87204e11975d20527bf5e2e (patch)
tree8f41c1b9f976728edaa1b41cfe11e1f0a68665e9
parentcbe5abeb4c8221a56e116f445a6f054881eb6ce4 (diff)
downloadvaadin-framework-21256faaf1cbf04bf87204e11975d20527bf5e2e.tar.gz
vaadin-framework-21256faaf1cbf04bf87204e11975d20527bf5e2e.zip
Add close element after caption text (#10682)
Change-Id: I2f041e888e29d8eef06bcc5562ba9bb3a87745dc
-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;