Resizable dialog is not working inside a page with some scroll

This fix is changing the way we set the position of the resizable overlay, using the real position of the element insted of its position inside the viewport.
I think this is an old comment that is not needed, you can remove it.