From: Artur Signell Date: Mon, 14 Jan 2013 19:46:10 +0000 (+0200) Subject: Add close element after caption text (#10682) X-Git-Tag: 7.0.0.rc1~18^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=21256faaf1cbf04bf87204e11975d20527bf5e2e;p=vaadin-framework.git Add close element after caption text (#10682) Change-Id: I2f041e888e29d8eef06bcc5562ba9bb3a87745dc --- 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("×"); closeButton .setClassName(VTabsheet.CLASSNAME + "-caption-close"); - getElement().insertBefore(closeButton, - getElement().getLastChild()); + getElement().appendChild(closeButton); } else if (!closable && closeButton != null) { getElement().removeChild(closeButton); closeButton = null;