[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Centering ModalPopup Problem  XML
Forum Index -> Development
Author Message
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

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
[Thumb - Untitled.png]
 Filename Untitled.png [Disk] Download
 Description Centering Popup Problem
 Filesize 21 Kbytes
 Downloaded:  392 time(s)

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5555
Offline

...we had the problem in a parallel post of this week - and found the problem there. I strongly believe it is also the problem that appears in your scenario. The solution is part of the next update.

Regards, Björn

Björn Müller, CaptainCasa GmbH
vadingding

Power User
[Avatar]

Joined: 14/07/2017 13:26:37
Messages: 145
Offline

Thanks Captain!
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team