Skip to content

Commit 91b1929

Browse files
committed
#45 fix for when no caption is set
1 parent bdf9787 commit 91b1929

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

assets/js/jquery.fancybox.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3182,6 +3182,9 @@
31823182

31833183
if($('.fancybox-custom-caption.inside-caption').length ){
31843184
custom_caption_outerHeight = $el.find('.fancybox-custom-caption').outerHeight();
3185+
if(custom_caption_outerHeight == 0){
3186+
custom_caption_outerHeight = 10;
3187+
}
31853188
} else {
31863189
custom_caption_outerHeight = ($el.find('.fancybox-image').outerHeight() - $el.find('.fancybox-image').height())/2;
31873190
// Seems like different border width for image requires a little trimming

0 commit comments

Comments
 (0)