From 21256faaf1cbf04bf87204e11975d20527bf5e2e Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Mon, 14 Jan 2013 21:46:10 +0200 Subject: [PATCH] Add close element after caption text (#10682) Change-Id: I2f041e888e29d8eef06bcc5562ba9bb3a87745dc --- client/src/com/vaadin/client/ui/VTabsheet.java | 3 +-- 1 file changed, 1 insertion(+), 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("×"); closeButton .setClassName(VTabsheet.CLASSNAME + "-caption-close"); - getElement().insertBefore(closeButton, - getElement().getLastChild()); + getElement().appendChild(closeButton); } else if (!closable && closeButton != null) { getElement().removeChild(closeButton); closeButton = null; -- 2.39.5