summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-26 15:04:43 +0400
committerAndrew Dolgov <[email protected]>2013-03-26 15:04:43 +0400
commit5165a4d36604f6594333b6f0621482a1de7b0974 (patch)
tree0e8550c9f8606f83eab54ba0f640d46369de3059 /js
parent0bf65987b69ffe3d9f401937ed27fdd74127f59d (diff)
fix small preview location
Diffstat (limited to 'js')
-rw-r--r--js/viewfeed.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js
index ad4ff7061..794e94952 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' });
}