IDEMPIERE-1992 HTML editor toolbar button disappear when swithching tabs / Thanks to Chử Trần Vương (VuongCT)

This commit is contained in:
Carlos Ruiz 2014-07-02 13:15:34 -05:00
parent 75ee91ce39
commit 498e2023fa
1 changed files with 7 additions and 1 deletions

View File

@ -126,7 +126,11 @@ public class WTextEditorDialog extends Window implements EventListener<Event>{
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<Event>{
}
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) {