Merge e0683afeeecb

This commit is contained in:
Heng Sin Low 2013-07-03 17:45:06 +08:00
commit 012084434e
3 changed files with 5 additions and 3 deletions

View File

@ -67,7 +67,7 @@ public class WPAPanel extends Panel implements EventListener<Event>
Grid grid = new Grid();
appendChild(grid);
int gh = options != null && options.chartHeight > 0 ? options.chartHeight+60 : 180;
grid.setHeight(m_goals.length * gh / 2 + "px");
grid.setHeight((m_goals.length + (m_goals.length % 2)) * gh / 2 + "px");
grid.makeNoStrip();
Rows rows = new Rows();

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