Android browser doesn't display lightbox effects correctly
-
Nextget V2.0.66.37. Using any of the lightbox effects and an Android tablet (Android 4.0.4), the images are displayed behind everything else. (I’m using the Inkness theme. With this I can see bits of the image behind other parts of the page.) After some searching I found that the problem is with webkit not handling the z-index value correctly with position:absolute. The solution is to add the following CSS:
#fancybox-overlay, #fancybox-wrap {-webkit-backface-visibility: hidden;}
which doesn’t seem to have any other side effects. As it is a problem with webkit it might affect Safari as well. I’ve created a child theme and put the CSS into the child theme stylesheet. This is for the fancybox effect; for the other effects the id’s will be different. For the lightbox they are: #jquery-overlay and #jquery-lightbox. The fancybox seems most suitable for mobile devices because the images are scaled to fit the viewport.
The topic ‘Android browser doesn't display lightbox effects correctly’ is closed to new replies.