[Imported] Dynamically Resize a popup in Runtime


[Imported] Dynamically Resize a popup in Runtime

>>Message imported from previous forum - Category:Scripts and Tips<<
User: mchartrand, originally posted: 2018-10-25 18:59:56 Id:273
This is a re-posting from the obsoleted (October 2018) "Schneider Electric Telemetry & SCADA" forum.


Hi Guys,
I have an embedded list on a mimic page (popup). I will like to dynamically resize this popup based on the size of the list. Has anyone done this before? Is it possible?_**

I don't think that you can programmatically change the size of the popup once it's open (although I'd love to be proved wrong). But you could use some script to estimate the size of the list, and then use that to set the size that it opens it as. It would be difficult to get it to work cleanly though.

Let me know if you figure this one out.


It would be quite easy to do... but it would be very inefficient.

You would essentially be executing each desired query twice... once prior to launching the popup to identify the size to open the popup as, and then again when the popup is open inside the embedded query list.

Is it really that critical?
Couldn't you just create a popup that is bigger than you would typically need? It might not look that optimum, but it would be functional.