Fixed showWindow(modalWindow, "center") doesn't show modal window in the center of screen.

This commit is contained in:
Heng Sin Low 2011-02-07 11:28:09 +08:00
parent c0559b8e18
commit 0a0f56134e
1 changed files with 2 additions and 0 deletions

View File

@ -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))