vampirehunter Posted July 6, 2015 Share Posted July 6, 2015 I am hoping someone can help because i have tried everything and cannot work out why the javascript is making the thumbnail of one of the images in the 1st column smaller in height and width than the others. Everything is correctly set in ht_productcolorbox.php in modules\headertags. the css is this #piGal { width: 360px; } #piGal img { max-width: 360px; height: auto; } /* Image overlap fix */ .photoset-row { padding-bottom: 5px; } Javascript settings, ive only added a 10px gutter, nothing else. $oscTemplate->addBlock('<script>var ImgCount = $("#piGal").data("imgcount"); $(function() {$(\'#piGal\').css({\'visibility\': \'hidden\'});$(\'#piGal\').photosetGrid({layout: ""+ ImgCount +"",width: \'360px\' +"",gutter: \'10px\' ,highresLinks: true,rel: \'pigallery\',onComplete: function() {$(\'#piGal\').css({\'visibility\': \'visible\'});$(\'#piGal a\').colorbox({maxHeight: \'90%\',maxWidth: \'90%\', rel: \'pigallery\'});$(\'#piGal img\').each(function() {var imgid = $(this).attr(\'id\').substring(9);if ( $(\'#piGalDiv_\' + imgid).length ) {$(this).parent().colorbox({ inline: true, href: "#piGalDiv_" + imgid });}});}});});</script>', $this->group); this is the output im getting on the screen in image attached. it doesn't matter if i set 3 or 4 or 5 images per column. one of the images, i think its second one, is always being shown with less height and width. it looks like some javascript is doing something but i have no clue as nothing seems to affect it. Nothing in the css, or in ht_productcolorbox.php ive set in admin, columns to 13333 Link to comment Share on other sites More sharing options...
vampirehunter Posted July 10, 2015 Author Share Posted July 10, 2015 Anyone have any info on fixing this problem? I've put the images in a a seperate div. And product info in another div. Link to comment Share on other sites More sharing options...
BrockleyJohn Posted July 11, 2015 Share Posted July 11, 2015 Time to ask the obvious daft question - are you sure it's the same image file each time? Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
vampirehunter Posted July 14, 2015 Author Share Posted July 14, 2015 Yes. Tried with different images too. Maybe it's mym html code causing conflict somewhere Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.