From 0a0f56134e81d21cdeaff02c02ed444ddfc0a9c3 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 7 Feb 2011 11:28:09 +0800 Subject: [PATCH] Fixed showWindow(modalWindow, "center") doesn't show modal window in the center of screen. --- .../src/org/adempiere/webui/desktop/AbstractDesktop.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/AbstractDesktop.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/AbstractDesktop.java index ecaa64f122..13c8c822e6 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/AbstractDesktop.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/desktop/AbstractDesktop.java @@ -160,6 +160,8 @@ public abstract class AbstractDesktop extends AbstractUIPart implements IDesktop if (Window.MODE_MODAL.equals(mode)) { + if (pos != null) + win.setPosition(pos); showModal(win); } else if (Window.MODE_POPUP.equals(mode))