From eb84d4f8ff8a53f7eac52edf61951e5dba5906fc Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 20 Aug 2017 10:21:08 +0200 Subject: Recalc sticky column on lazy img load https://github.com/FreshRSS/FreshRSS/issues/1593 --- p/scripts/main.js | 1 + 1 file changed, 1 insertion(+) (limited to 'p') diff --git a/p/scripts/main.js b/p/scripts/main.js index 8081b7f38..117e8a598 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -227,6 +227,7 @@ function toggleContent(new_active, old_active) { if (context.does_lazyload) { new_active.find('img[data-original], iframe[data-original]').each(function () { + this.onload = function () { $(document.body).trigger("sticky_kit:recalc"); }; this.setAttribute('src', this.getAttribute('data-original')); this.removeAttribute('data-original'); }); -- cgit v1.2.3