ItEr43S10SoporteImpresionMultiplesPaxinasItEr42S15: Print configuration window close button fixed
This commit is contained in:
parent
fe576bd5f5
commit
a1c9c81252
3 changed files with 15 additions and 25 deletions
|
|
@ -20,8 +20,6 @@
|
|||
|
||||
package org.zkoss.ganttz;
|
||||
|
||||
import static org.zkoss.ganttz.i18n.I18nHelper._;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
|
|
@ -414,25 +412,16 @@ public class FunctionalityExposedForExtensions<T> implements IContext<T> {
|
|||
final Window printProperties = (Window) Executions.createComponents(
|
||||
"/planner/print_configuration.zul", planner, null);
|
||||
|
||||
Button printButton = new Button(_("Print"));
|
||||
Button printButton = (Button) printProperties.getFellow("printButton");
|
||||
printButton.addEventListener(Events.ON_CLICK, new EventListener() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
printProperties.detach();
|
||||
configuration.print(buildParameters(printProperties),planner);
|
||||
}
|
||||
});
|
||||
printButton.setParent(printProperties);
|
||||
|
||||
Button cancelPrint = new Button(_("Cancel"));
|
||||
printButton.addEventListener(Events.ON_CLICK, new EventListener() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
// get Print properties and params
|
||||
printProperties.setVisible(false);
|
||||
}
|
||||
});
|
||||
cancelPrint.setParent(printProperties);
|
||||
|
||||
try {
|
||||
printProperties.doModal();
|
||||
} catch (Exception e) {
|
||||
|
|
|
|||
|
|
@ -66,20 +66,19 @@ a.ruta,
|
|||
|
||||
/* ------ Dynamically set heights ------ */
|
||||
|
||||
body div.main-layout {
|
||||
height: 1200px !important;
|
||||
}
|
||||
|
||||
body div.plannerlayout {
|
||||
height: 1190px !important;
|
||||
}
|
||||
|
||||
body div#timetracker {
|
||||
height: 1130px !important;
|
||||
}
|
||||
|
||||
body div#scroll_container {
|
||||
height: 1110px !important;
|
||||
}
|
||||
body div#timetracker {
|
||||
height: 1130px !important;
|
||||
}
|
||||
body div.plannerlayout {
|
||||
height: 1190px !important;
|
||||
}
|
||||
body div.main-layout {
|
||||
height: 1200px !important;
|
||||
}
|
||||
|
||||
|
||||
/* ------ Calculated body width added via CutyPrint CSS generator ------ */
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
<zk>
|
||||
|
||||
<window border="normal" title="${i18n:_('Print configuration')}"
|
||||
closable="true">
|
||||
closable="true" id="printConfigurationWindow">
|
||||
<panel title="${i18n:_('Select print page properties')}"
|
||||
border="normal" style="margin-bottom:10px;">
|
||||
<panelchildren>
|
||||
|
|
@ -74,6 +74,8 @@
|
|||
</vbox>
|
||||
</panelchildren>
|
||||
</panel>
|
||||
<button id="printButton" label="${i18n:_('Print')}" sclass="save-button global-action"></button>
|
||||
<button id="cancelPrintButton" label="${i18n:_('Cancel')}" sclass="cancel-button global-action" onClick="printConfigurationWindow.detach()"/>
|
||||
</window>
|
||||
|
||||
</zk>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue