Open amreladawy opened 8 years ago
What's the structure of the object your passing ?
Is the issue that the thumbnail becomes too small ?
Hello. The same issue. Natural size is 200x200 px. I think there is something wrong in line
element.css('height',element[0].offsetWidth * parseInt(scope.$parent.responsiveGrid)/100 + 'px');
https://github.com/pedroabreu/ion-gallery/blob/master/dist/ion-gallery.js#L209
Is this still an issue ?
I think it is. I've tried newest version, height is 0 (maybe I've made wrong structure of items, the structure is [{"src":"http://gallerytest.easybusy.net/media/galleries/2d379ed60f329caa7e05f925c004312a_S7Uxfmz.png?md5=1e62a108e93fa31a98f3747449b325df","thumb":null,"sub":null},{"src":"http://gallerytest.easybusy.net/media/galleries/22beb51c16be835a2322e7d1654d0a0b_AAUK1zS.jpg?md5=5c5a3c849d0ac16d298f149ac453922b","thumb":null,"sub":null},{"src":"http://gallerytest.easybusy.net/media/galleries/ea2b707f4802a823712ac7293d82ec64_6hrJ5Xx.jpg?md5=8e573106c153fecb4e48a3e6624abdfc","thumb":null,"sub":null},{"src":"http://gallerytest.easybusy.net/media/galleries/edb8f55f01029aeb2daab759310c6702_f6dIeAg.gif?md5=6750559bfe9644a877a62eb62ebef180","thumb":null,"sub":null}]
).
Temporary I replaced with natural height
element.attr('height',element.parent()[0].offsetHeight+'px');
Testing in newest version
You're getting 0 because you're passing the thumb property as null (And that's the image rendered as the item in the gallery). That's why you don't have src attribute on the image.
As it is, either you don't define the property at all (just remove it from the object) or you need to define it's value.
It's a bit silly as it is, I'll fix it in the next days
Hi there,
Nice plugin. I tried to use but the final HTML discards the thumb image I passed to it
The final results looks like this