We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 79a3713 + 9ec36e5 commit 442f45aCopy full SHA for 442f45a
js/magic.rows.js
@@ -13,7 +13,7 @@
13
this.css({
14
'font-size': 0,
15
'text-align': 'justify'
16
- }).children().css({
+ }).find('*:not(img)').css({
17
'display': 'inline-block'
18
}).find('img').css({
19
'display':'block'
@@ -37,7 +37,8 @@
37
// settings
38
var settings = $.extend({
39
max_height: 225,
40
- margin: 6
+ margin: 6,
41
+ selector: this.selector
42
}, options);
43
44
@@ -55,7 +56,7 @@
55
56
var image = {
57
aspect_ratio: $this.width() / $this.height(),
58
height: $this.height(),
- index: $this.parent().index(),
59
+ index: $this.parentsUntil(settings.selector).last().index(),
60
width: $this.width()
61
};
62
images_array.push(image);
@@ -160,4 +161,4 @@
160
161
162
163
-})( window, jQuery);
164
+})( window, jQuery);
0 commit comments