fix small preview location

This commit is contained in:
Andrew Dolgov 2013-03-26 15:04:43 +04:00
parent 0bf65987b6
commit 5165a4d366
1 changed files with 2 additions and 1 deletions

View 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' });
}