We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5119101 commit 58354d7Copy full SHA for 58354d7
1 file changed
assets/touchTouch/touchTouch.jquery.js
@@ -51,7 +51,6 @@
51
52
if(captions.length > 0)
53
{
54
- //overlay.append('<div id="caption-container"><p id="caption"></p></div>');
55
captionContainer.append(captionContent).appendTo(overlay);
56
}
57
@@ -412,8 +411,8 @@
412
411
var current_placeholder = placeholders.eq(idx);
413
var current_img = current_placeholder.find('img');
414
//get the padding of the caption content
415
- var padding = parseInt(captionContent.css('padding-left'));
416
- //set the content and width of the caption
+ var padding = parseInt(captionContent.css('padding-left'));
+ //set the content and width of the caption
417
captionContent.text(captions[idx]).css('width',current_img.width()- 2 * padding);
418
//set the distance from the bottom for the caption container
419
//fade in the caption container
0 commit comments