IDEMPIERE-724 Zk: Make iDempiere theme more easily customizable - Fix locator and location popups. Required fixed popup height for ZK to auto adjust the position based on available space.

This commit is contained in:
Elaine Tan 2013-07-03 13:50:57 +08:00
parent cdead096cf
commit a0a5caa279
2 changed files with 4 additions and 2 deletions

View File

@ -190,6 +190,7 @@ public class WLocationDialog extends Window implements EventListener<Event>
initLocation();
//
this.setWidth("350px");
this.setHeight("360px"); // required fixed height for ZK to auto adjust the position based on available space
this.setSclass("popup-dialog");
this.setClosable(true);
this.setBorder("normal");
@ -336,7 +337,7 @@ public class WLocationDialog extends Window implements EventListener<Event>
Borderlayout borderlayout = new Borderlayout();
this.appendChild(borderlayout);
borderlayout.setHflex("1");
borderlayout.setVflex("min");
borderlayout.setVflex("1");
Center centerPane = new Center();
centerPane.setSclass("dialog-content");

View File

@ -232,7 +232,7 @@ public class WLocatorDialog extends Window implements EventListener<Event>
Borderlayout borderlayout = new Borderlayout();
this.appendChild(borderlayout);
borderlayout.setHflex("1");
borderlayout.setVflex("min");
borderlayout.setVflex("1");
Center centerPane = new Center();
centerPane.setSclass("dialog-content");
@ -252,6 +252,7 @@ public class WLocatorDialog extends Window implements EventListener<Event>
this.setClosable(true);
this.setBorder("normal");
this.setWidth("260px");
this.setHeight("300px"); // required fixed height for ZK to auto adjust the position based on available space
this.setShadow(true);
this.setAttribute(Window.MODE_KEY, Window.MODE_HIGHLIGHTED);
this.setSizable(true); // Elaine 2009/02/02 - window set to resizable