Minor appearance adjustment for user preference popup.

This commit is contained in:
Heng Sin Low 2012-08-25 07:57:15 +08:00
parent 1141bf1d6b
commit c640496e37
2 changed files with 3 additions and 3 deletions

View File

@ -167,7 +167,7 @@ public class UserPanel extends Vbox implements EventListener<Event>
}
preferencePopup = new WPreference();
preferencePopup.setPage(this.getPage());
preferencePopup.open(preference);
preferencePopup.open(preference, "after_start");
}
}

View File

@ -36,7 +36,7 @@ import org.zkoss.zul.Space;
* @author hengsin
*
*/
public class WPreference extends Popup implements EventListener {
public class WPreference extends Popup implements EventListener<Event> {
/**
*
*/
@ -55,7 +55,6 @@ public class WPreference extends Popup implements EventListener {
}
private void init() {
this.setStyle("padding: 5px");
Div div = new Div();
div.setStyle("background-color: transparent !important; border: none; margin: 5px;");
@ -129,6 +128,7 @@ public class WPreference extends Popup implements EventListener {
btn.setTooltiptext(Msg.getMsg(Env.getCtx(),"Save"));
btn.addEventListener(Events.ON_CLICK, this);
toolbar.appendChild(btn);
toolbar.setStyle("border: none");
UserPreference preference = SessionManager.getSessionApplication().getUserPreference();
autoCommit.setValue(preference.getProperty(UserPreference.P_AUTO_COMMIT));