]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add close element after caption text (#10682) 40/640/1
authorArtur Signell <artur@vaadin.com>
Mon, 14 Jan 2013 19:46:10 +0000 (21:46 +0200)
committerArtur Signell <artur@vaadin.com>
Mon, 14 Jan 2013 19:52:18 +0000 (21:52 +0200)
Change-Id: I2f041e888e29d8eef06bcc5562ba9bb3a87745dc

client/src/com/vaadin/client/ui/VTabsheet.java

index e20310408beecc2169020e991706004df8cb82bd..cd3ed8287e074aa1bb3fe1af4025ceec59dae6d2 100644 (file)
@@ -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;