Thanks very much for your work on this. Is it possible to use this add-on t

Thanks very much for your work on this. Is it possible to use this add-on to execute an on-demand query for the height/width of an element?

It seems to me that your code example, while very good and helpful for the use-case it addresses, establishes a callback when a certain condition is hit.

I need to be able to, essentially, get height/width (and X,Y pos) of an element under certain conditions.

Can this add-on be used for that use-case?

Again, thanks very much for your work on this.

Hi,

Sorry for the late answer.

You can set the condition on the page or on the element (like width < 600px and height < 250px) then when the condition changed it will execute the Java code.
It doesn’t not give you the height or width (it’s possible to retrieve them by javascript). And if the condition doesn’t change then the java code won’t be called again (like if the width is 500px then you change it to 400px).