From 5165a4d36604f6594333b6f0621482a1de7b0974 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 26 Mar 2013 15:04:43 +0400 Subject: [PATCH] fix small preview location --- js/viewfeed.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/viewfeed.js b/js/viewfeed.js index ad4ff706..794e9495 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -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' }); } -- 2.39.5