File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 51
51
52
52
if ( captions . length > 0 )
53
53
{
54
- //overlay.append('<div id="caption-container"><p id="caption"></p></div>');
55
54
captionContainer . append ( captionContent ) . appendTo ( overlay ) ;
56
55
}
57
56
412
411
var current_placeholder = placeholders . eq ( idx ) ;
413
412
var current_img = current_placeholder . find ( 'img' ) ;
414
413
//get the padding of the caption content
415
- var padding = parseInt ( captionContent . css ( 'padding-left' ) ) ;
416
- //set the content and width of the caption
414
+ var padding = parseInt ( captionContent . css ( 'padding-left' ) ) ;
415
+ //set the content and width of the caption
417
416
captionContent . text ( captions [ idx ] ) . css ( 'width' , current_img . width ( ) - 2 * padding ) ;
418
417
//set the distance from the bottom for the caption container
419
418
//fade in the caption container
You can’t perform that action at this time.
0 commit comments