Hi Captain,
Im having a trouble on centering my modal popup (Please see attached snapshot).
Here is my code :
Code:
private void openModalPopup() {
final UserLogIn uli = new UserLogIn();
ModalPopup modal = openModalPopup(uli, "Log In", 374, 178, new ModalPopup.IModalPopupListener() {
@Override
public void reactOnPopupClosedByUser(){
closePopup(uli);
}
});
modal.setLeftTopReferenceCentered();
uli.prepare(new UserLogIn.ICloseListener(){
@Override
public void reactOnClose(){
modal.close();
HttpSessionAccess.getCurrentHttpSession().setAttribute("UserID", uli.getUserName());
buildMenuNodes("#{d.MainUI.tree0}");
buildMenuSuite();
}
});
}
Help would be much appreciated! D
Regards,
Vincent