The dropdown object in Perspective seems to open a new view that is always ~20 pixels below the text field. Regardless of the text field's position after being scaled or moved in flex container by resizing the session, or even if the option panel should show up outside of the dropdown's parent container, the option panel is always a specified distance beneath the text field.
I've been looking into a way to recreate this functionality, so that I can implement similar option panels on any object that is clicked. From what I've read on the forum and seen in the User Manual, I can't see how it is possible. Yet the dropdown achieves this.
The built-in pop-up event uses a location relative to the mouse coordinates, not relative to the clicked element. Determining the clicked element's top-left corner position is not possible in most cases without the use of the session's height and width in pixels, since the elements themselves use % values for position.
I feel like this is a common use-case, in web development and in UI development, but I am stuck. If anyone has some insight I would appreciate it!