cancel
Showing results for 
Search instead for 
Did you mean: 

Dialog box position problem

david_fryda2
Participant
0 Kudos

Hi everyone,

I've got a simple problem : when I enter in my Portal in hebrew language, the dialog box position is not respected.

I used the dialog.setWindowPosition(x, y)

and dialog.setWindowPosition(WDWindowPos.CENTER)

but the window always appears behind the navigation of the Portal.....which is half readable.

Can someone please help with that issue ?

Thanks in advance.

Regards.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Try this

dialog.setWindowPosition(10,10);

dialog.open();

can you please post your complete code.

Kind Regards

Mukesh

david_fryda2
Participant
0 Kudos

Hi,

Here is the code :


IWDConfirmationDialog dialog = wdComponentAPI.getWindowManager().createConfirmationWindow("Hello world" , wdThis.wdGetAPI().getViewInfo().getViewController().findInEventHandlers("OK"), "Ok");
dialog.setWindowPosition(10,10);		
dialog.open();	

The position (10, 10) does not do anything...the window is display in the center.

Thanks

NB : I want to correct something : the issue is also relevant if I enter in my Portal in english language.

Message was edited by: David Fryda

Former Member
0 Kudos

Hi

Try this

IWDControllerInfo controllerInfo =

wdControllerAPI.getViewInfo().getViewController();

IWDConfirmationDialog dialog =

wdComponentAPI.getWindowManager().createConfirmationWindow("dialogText",controllerInfo.findInEventHandlers("OK"), "Ok");

dialog.setWindowPosition(10,10);

dialog.open();

Kind Regards

Mukesh

david_fryda2
Participant
0 Kudos

Hi,

It does not change anything : the dialog box is still display in the same place...

Is it a problem with our SP ?

Thanks.