| @@ -10,9 +10,9 @@ | ||
| 10 | 10 | jQuery('.isc_image_list_title').attr('title', (isc_jstext['hide_list'])); |
| 11 | 11 | isc_list.toggleClass('isc-list-up isc-list-down'); |
| 12 | 12 | isc_list.css({ |
| 13 | 13 | visibility: 'hidden', |
| 14 | - height: '100%', | |
| 14 | + height: 'auto' | |
| 15 | 15 | }); |
| 16 | 16 | max = isc_list.height(); |
| 17 | 17 | isc_list.css({ |
| 18 | 18 | height: '0px', |
| @@ -29,9 +29,9 @@ | ||
| 29 | 29 | 1500 |
| 30 | 30 | ); |
| 31 | 31 | } |
| 32 | 32 | }); |
| 33 | - | |
| 33 | + | |
| 34 | 34 | /** |
| 35 | 35 | * Move caption into image |
| 36 | 36 | */ |
| 37 | 37 | jQuery('.isc-source').each(function(){ |
| @@ -52,9 +52,9 @@ | ||
| 52 | 52 | // the image and the bottom border) not with the div itself. The following line set the padding on the bottom equal to the top. |
| 53 | 53 | jQuery(this).css('padding-bottom', jQuery(this).css('padding-top')); |
| 54 | 54 | isc_update_captions_positions(); |
| 55 | 55 | }); |
| 56 | - | |
| 56 | + | |
| 57 | 57 | jQuery(window).resize(function(){ |
| 58 | 58 | isc_update_captions_positions(); |
| 59 | 59 | }); |
| 60 | 60 | jQuery('.isc-source img').load(function(){ |
| @@ -73,32 +73,32 @@ | ||
| 73 | 73 | var att_number = main_id.split('_')[2]; |
| 74 | 74 | var att = jQ_Obj.find('.wp-image-' + att_number); |
| 75 | 75 | var attw = att.width(); |
| 76 | 76 | var atth = att.height(); |
| 77 | - | |
| 78 | - | |
| 77 | + | |
| 78 | + | |
| 79 | 79 | //relative position |
| 80 | 80 | var l = att.position().left; |
| 81 | 81 | //relative position |
| 82 | 82 | var t = att.position().top; |
| 83 | - | |
| 83 | + | |
| 84 | 84 | var caption = jQ_Obj.find('.isc-source-text'); |
| 85 | - | |
| 85 | + | |
| 86 | 86 | //caption width + padding & margin (after moving onto image) |
| 87 | 87 | var tw = caption.outerWidth(true); |
| 88 | 88 | //caption height + padding (idem) |
| 89 | 89 | var th = caption.outerHeight(true); |
| 90 | - | |
| 90 | + | |
| 91 | 91 | var attpl = parseInt(att.css('padding-left').substring(0, att.css('padding-left').indexOf('px'))); |
| 92 | 92 | var attml = parseInt(att.css('margin-left').substring(0, att.css('margin-left').indexOf('px'))); |
| 93 | 93 | var attpt = parseInt(att.css('padding-top').substring(0, att.css('padding-top').indexOf('px'))); |
| 94 | 94 | var attmt = parseInt(att.css('margin-top').substring(0, att.css('margin-top').indexOf('px'))); |
| 95 | - | |
| 95 | + | |
| 96 | 96 | //caption horizontal margin |
| 97 | 97 | var tml = 5; |
| 98 | 98 | //caption vertical margin |
| 99 | 99 | var tmt = 5; |
| 100 | - | |
| 100 | + | |
| 101 | 101 | var pos = isc_front_data.caption_position; |
| 102 | 102 | var posl = 0; |
| 103 | 103 | var post = 0; |
| 104 | 104 | switch (pos) { |