cancel
Showing results for 
Search instead for 
Did you mean: 

how to get ui element position on page?

Former Member
0 Kudos

Hi,all

How can I get ui element current position on the page?

Regards,

Michael

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Solved by myself

PradeepBondla
Active Contributor
0 Kudos

Hi,

could you be more clear, for which UI element you want this?

and in which situation. is it showing messages or anyother?

PradeeP

Former Member
0 Kudos

Hi,

You mean x,y cordinates?

Regards

Ayyapparaj

Former Member
0 Kudos

Hi,Ayyapparaj

Yes, x,y coordinates and the size of the element,

table for example.

regards,

Michael

Former Member
0 Kudos

Hi,

I am afraid that its exposed to users. Just out of curiosity why you need this?

Regards

Ayyapparaj

Former Member
0 Kudos

I'm creating a popup window and need to open it always from the bottom left point

of the table for example.

regards,

michael

PradeepBondla
Active Contributor
0 Kudos

Hi,

I think you are using "window.setWindowPosition(x,y ) " where try out x, y position from 50,50.

just trial and error method changing the x, y coordinates.

is there anything else you wanted?

PradeeP

Former Member
0 Kudos

PradeeP,

You are right,I'm using this method.

But trial and error method is not suitable for me.

The problem is that the table can grow on run time

and I can not know the current size of the table.

Any ideas?

Regards,

Michael

Former Member
0 Kudos

Hi,

To find the exact X,Y combination will not be that easy as the algorithm would be a bit complex considering the rendering of screen on different resolution and different flavours.

Regards

Ayyapparaj