I have a ArcGIS Enterprise (Portal) Web AppBuilder template that I've customized to allow for my pop-up windows to be dragged around the screen, largely using the example located here.
The issue I'm having, that I've been unable to resolve, is that the popup is not constrained to the map window. I've tried, but not succeeded, in using Dojo's parentConstrainedMoveable. I've found an example here that keeps a floating pane (with id = "searchbox") within the confines of a parent pane (with class = "container"). Essentially, I want the "map" element of my Web AppBuilder template to be the parent that tells my identify pop-up window that it can't be moved outside the confines of the map element.
Is there an easy way to modify the JavaScript in link 1 to incorporate the concepts of link 2?