Closed Fasse closed 9 years ago
I have updated the lib ekko-lightbox
. maybe this have fixed this.
I found an other little bug: https://github.com/ashleydw/lightbox/issues/121
Ok i found a way to fix this. but this has to get fixed in the ekko-lightbox
lib.
ekko-lightbox.js Line 315ff
preloadImage: function(src, onLoadShowImage) {
var img,
_this = this;
img = new Image();
if ((onLoadShowImage == null) || onLoadShowImage === true) {
img.onload = function() {
var image;
image = $('<img />');
image.attr('src', img.src);
image.addClass('img-responsive');
_this.lightbox_body.html(image);
if (_this.modal_arrows) {
_this.modal_arrows.css('display', 'block');
}
// Start Fix
image.load(function() {
_this.resize(img.width);
});
// End Fix
return _this.options.onContentLoaded.call(_this);
};
img.onerror = function() {
return _this.error('Failed to load image: ' + src);
};
}
img.src = src;
return img;
}
i created a pull request to fix this bug in the lib. Waiting for merge https://github.com/ashleydw/lightbox/pull/126
If you view the photos in the photo module than the navigation icons have wrong position with Chrome and Safari on iPad.
See http://forum.admidio.org/viewtopic.php?p=21359