Steps to Reproduce
- Open testcase
- Click on the blue buttons (you can scroll the modal)
- Increase the width of the preview frame (maximize it) and click again
Expected
The Popup should position next to its button.
Result
The Popup does not position correctly and goes to the right, this only happens when the modal is in "scrolling mode" (when bigger than the window).
Testcase
http://jsfiddle.net/6mt4kj5e/2/