From 498e2023fa6ae1f210fd5058a2eb803b721cf1e0 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 2 Jul 2014 13:15:34 -0500 Subject: [PATCH] =?UTF-8?q?IDEMPIERE-1992=20HTML=20editor=20toolbar=20butt?= =?UTF-8?q?on=20disappear=20when=20swithching=20tabs=20/=20Thanks=20to=20C?= =?UTF-8?q?h=E1=BB=AD=20Tr=E1=BA=A7n=20V=C6=B0=C6=A1ng=20(VuongCT)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/org/adempiere/webui/window/WTextEditorDialog.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WTextEditorDialog.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WTextEditorDialog.java index 7b50bbfe33..589487da2f 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WTextEditorDialog.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/window/WTextEditorDialog.java @@ -126,7 +126,11 @@ public class WTextEditorDialog extends Window implements EventListener{ vbox.appendChild(new Separator()); ConfirmPanel confirmPanel = new ConfirmPanel(true); - vbox.appendChild(confirmPanel); + //Bug IDEMPIERE-1992 Create a Wrapper Div to Wrap ConfirmPanel,to prevent it from disappearing after user navigate to another window/tab + Div confirmPanelWrapper = new Div(); + vbox.appendChild(confirmPanelWrapper); + confirmPanelWrapper.appendChild(confirmPanel); + // confirmPanel.addButton(confirmPanel.createButton(ConfirmPanel.A_RESET)); confirmPanel.addActionListener(this); @@ -142,6 +146,8 @@ public class WTextEditorDialog extends Window implements EventListener{ } tabbox.addEventListener(Events.ON_SELECT, this); + //Bug IDEMPIERE-1992 Ensure that text editor dialog has a close button + setClosable(true); } private void createEditor(org.zkoss.zul.Tabpanel tabPanel) {