ericmmartin / simplemodal

A modal dialog framework for jQuery
http://simplemodal.com/
Other
507 stars 229 forks source link

Ipad centering issues #25

Open CFPro opened 11 years ago

CFPro commented 11 years ago

I have problems with simplemodal when using it within an iOS device. It does not center the popup properly. Any fixes available?

WorthyD commented 11 years ago

I had the same issue on a site where we weren't specifically targeting any mobile or tablet devices. We removed the meta viewport tag and it resolved the issue. Not an ideal fix for the issue, but looks to be the root cause.

ux-engineer commented 11 years ago

I have forced absolute positioning for the container element as I cant do fixed when this specific modal is possibly higher in height than the browser window (but less than the site layout height). Modal seems to stay centered without a centering trick also with iOS.

This is mostly what works with me here with the container element:

position : absolute !important;
width: 600px;