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.
The `visible` property is not used.