Correct vertical positioning for modal with 'fade' animation

A modal with an animation of 'fade' will now always fade in in the
viewport instead of at the top of the document.