]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix small preview location
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 26 Mar 2013 11:04:43 +0000 (15:04 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 26 Mar 2013 11:04:43 +0000 (15:04 +0400)
js/viewfeed.js

index ad4ff7061c9fdd67c291a15f6f6ffcc31e985eda..794e94952d566099afca3a1e0be003638753a140 100644 (file)
@@ -1190,6 +1190,7 @@ function displaySmallArticlePreview(e, id) {
                                cexc = $("CEXC-" + id);
                                preview = $("small_article_preview");
                                row = $("RROW-" + id);
+                               ctr = $("headlines-frame");
 
                                if (id != getActiveArticleId() && (!isCdmMode() || (cexc && Element.visible(cexc))) && row && preview) {
                                        preview.innerHTML = transport.responseText;
@@ -1197,7 +1198,7 @@ function displaySmallArticlePreview(e, id) {
 
                                        preview.setStyle({
                                                left: (e.clientX + 20) + 'px',
-                                               top: (Element.cumulativeOffset(row)[1] + row.offsetHeight + 10) + 'px' });
+                                               top: (row.offsetTop + row.offsetHeight*2 + 20 - ctr.scrollTop) + 'px' });
 
                                }