I built an UI widget that shows a floating popup beneath the actual widget. It uses absolute positioning to position itself beneath the widget. What I am concerned is that when the document layout changes a bit, the absolutely positioned element is not beneath my UI widget.
Is there a way to detect if an HTML element has moved or reflowed?
I found an acceptable solution.
Whenever the floating popup is shown, I create an interval that runs every 250 msec calculating its position again (if the position of the parent has changed). When the popup hides or closes, I end the timer.