fancyapps / fancybox

jQuery lightbox script for displaying images, videos and more. Touch enabled, responsive and fully customizable.
http://fancyapps.com/
7.28k stars 1.78k forks source link

A question about wide picture. #754

Closed yevon-cn closed 10 years ago

yevon-cn commented 10 years ago

Example see on http://codepen.io/Leafer/pen/AgybF

When a picture is very wide and it's height is only a little , after open the fancybox the picture will not to be auto size.Sometime the size may bigger than the picture.

Is this case right ?(with chrome)

yevon-cn commented 10 years ago

Any one see this ?

fancyapps commented 10 years ago

You can disable minHeight http://codepen.io/anon/pen/wAmzG -

$(function(){
  $('.img_link').fancybox({
    minWidth  : 0,
    minHeight : 0
  });
});
yevon-cn commented 10 years ago

Great, I see. Thank you @fancyapps