Movable dialog is not working inside a page with some scroll

This fix is restoring the right behave for the movable dialog even if the page has some scroll.
Yes sure, copy/paste forgotten