onresize() when a jsui in resized in presentation mode?

pdelges's icon

I seems to me that onresize() is called only if the size of a jsui is changed in Patching Mode. Is there a way to now when a jsui is resized in Presentation mode?

p

Ben Bracken's icon

Hi Patrick,

This is currently not supported to have a JSUI different sizes in different views and expect the onresize method to be accurate to anything other than the patching size. This probably won't change.

However, with mgraphics, you can use mgraphics.size to kind of achieve the ability to ascertain different rects/views.

-Ben

pdelges's icon

Many thanks Ben.

p