Perspective popup view size

Maybe I am missing it somewhere in the manual but I need to be able to set popup width in % rather than in pixels. Pixels do me little good when I don’t know the viewport width.

If you’re using the Popup Action, you’re currently limited to pixel count. If you switch over to using scripting methods, like openPopup, closePopup, or togglePopup, then you have the option of supplying a position argument.

The following code would open a Popup which takes up 50% of the width of the screen:

system.perspective.togglePopup(id='<unique_id>',view='<view_of_your_popup',position={'width':'50%'})
1 Like

Thank you. I am using scripting. I just didn’t think to put the value in quotes.