Use position:absolute for modal bigger than window

When modal width or height is greater than available window area,
center method uses position:absolute instead of fixed, reset margins
and calculate new top and left position.