From: Andrew Dolgov Date: Thu, 9 Aug 2012 09:15:14 +0000 (+0400) Subject: fix clamping for infinite scrolling (refs #479) X-Git-Tag: 1.6.0~178 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8c5c4e494d92772533b2d56cbd426a01ccc24da1;p=tt-rss.git fix clamping for infinite scrolling (refs #479) --- diff --git a/js/viewfeed.js b/js/viewfeed.js index 2e830164..49eac875 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -116,6 +116,7 @@ function headlines_callback2(transport, offset, background, infscroll_req) { $$("#headlines-tmp > div").each(function(row) { if ($$("#headlines-frame DIV[id="+row.id+"]").length == 0) { row.style.display = 'none'; + c.domNode.appendChild(row); } else { row.parentNode.removeChild(row); @@ -141,10 +142,10 @@ function headlines_callback2(transport, offset, background, infscroll_req) { $$("#headlines-frame > div[id*=RROW]").each( function(child) { if (!Element.visible(child)) { - new Effect.Appear(child, { duration : 0.5 }); + //new Effect.Appear(child, { duration : 0.5 }); + Element.show(child); cp = child.getElementsByClassName("contentPreview")[0]; - clamp_element(cp, 50); } });