I’m happy to announce that starting tomorrow the 8.1.3 nightly builds will feature functionality that should resolve this issue.
system.perspective.openPopup
and togglePopup
will now have an optional viewportBound
keyword argument which is used for two things:
- A Popup with this property set to True will be shifted to open in the bounds of the viewport, even if relatively positioned in a manner which would have opened partially off-screen. If the Popup also happens to be too big to open fully in-bounds, then the Popup will be resized to dimensions that allow for opening within the viewport bounds.
- A Popup with this property set to
True
will only allow itself to be dragged up to the boundary of the viewport and no further. This will prevent instances where Popups could have been positioned in such a way that their close Icon was rendered off-screen.
The Popup Action has this same property available to it in the bottom-right of the Action screen as “Viewport Bound”.
Please note that this property is False
by default so as to not interfere with existing usages. To take advantage of this functionality, you must update current usages.