javascript - Colorbox not sizing correctly using custom HTML in Safari -
i'm having issue colorbox in safari, versions (works in chrome, ie, ff). see issue here: http://slick-modal-trinity-wall-street.pantheonsite.io/content/scenes-womens-march
left safari, right chrome:
here's js:
// colorbox gallery $( '.slick-photo-gallery-group', maingallery ).colorbox({ maxwidth: '95%', maxheight:'95%', fixed: true, scrolling: false, rel: 'slick-photo-gallery-group', html: function() { var url = $( ).attr( 'href' ), content = $( '.slick-photo-gallery-content', $( ).parent() ).html(), html = '<div class="slick-photo-colorbox"><img src="' + url + '" height="500"></div>'; if ( content ) { html += '<div class="slick-photo-colorbox-caption">' + content + '</div>'; } return html; } });
for reason in safari, colorbox isn't sizing modal correctly causing content cutoff. 1 thing keep in mind images size @ , aspect ratio no scrolling of actual modal.
Comments
Post a Comment