prettyPhoto aspect ratio issue on an iPad
-
Topic
-
prettyPhoto is nice and simple. It works great in most environments.
However, there seems to be an aspect ratio bug with prettyPhoto in an iPad environment.
In my case, my photos are fairly large (1440×960 pixels for a 2:3 aspect ratio). Using the standard built-in gallery and prettyPhoto code, their large versions open perfectly in a web browser and even iPhone, but on an iPad, the aspect ratio is different:
– Vertical photos are stretched vertically when an iPad is held vertically
– Horizontal photos are are stretched vertically when an iPad is held horizontallyObviously, the photos are distorted and do not look right, so it is important to find a solution.
The solution seems to be in the prettyphoto-dev.js file, especially around the _fitToViewport fragment of code. But I just wasn’t able to get it to work.
Any help would be appreciated.
Thanks!
- The forum ‘Akita Responsive WordPress Theme’ is closed to new topics and replies.