X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/816a4653c0086eeaf57ba148864bb06678d9234c..650cb7e30e5ed7def79c14f6ae63353bbf4441f4:/project/static/js/jquery.lazyload.js?ds=sidebyside
diff --git a/project/static/js/jquery.lazyload.js b/project/static/js/jquery.lazyload.js
index 25c94869..ea3de6ff 100644
--- a/project/static/js/jquery.lazyload.js
+++ b/project/static/js/jquery.lazyload.js
@@ -31,7 +31,13 @@
|| belowViewport(container, this, settings.threshold)) {
$(this).html(settings.placeholder);
} else {
- $(this).html('');
+ $(this).html('');
+ var self = this;
+ $('').load(function() {
+ if ($(this).height() > $(self).height()) {
+ $(self).height($(this).height());
+ }
+ }).appendTo(this);
}
})
}