fix small preview location
This commit is contained in:
parent
0bf65987b6
commit
5165a4d366
|
@ -1190,6 +1190,7 @@ function displaySmallArticlePreview(e, id) {
|
||||||
cexc = $("CEXC-" + id);
|
cexc = $("CEXC-" + id);
|
||||||
preview = $("small_article_preview");
|
preview = $("small_article_preview");
|
||||||
row = $("RROW-" + id);
|
row = $("RROW-" + id);
|
||||||
|
ctr = $("headlines-frame");
|
||||||
|
|
||||||
if (id != getActiveArticleId() && (!isCdmMode() || (cexc && Element.visible(cexc))) && row && preview) {
|
if (id != getActiveArticleId() && (!isCdmMode() || (cexc && Element.visible(cexc))) && row && preview) {
|
||||||
preview.innerHTML = transport.responseText;
|
preview.innerHTML = transport.responseText;
|
||||||
|
@ -1197,7 +1198,7 @@ function displaySmallArticlePreview(e, id) {
|
||||||
|
|
||||||
preview.setStyle({
|
preview.setStyle({
|
||||||
left: (e.clientX + 20) + 'px',
|
left: (e.clientX + 20) + 'px',
|
||||||
top: (Element.cumulativeOffset(row)[1] + row.offsetHeight + 10) + 'px' });
|
top: (row.offsetTop + row.offsetHeight*2 + 20 - ctr.scrollTop) + 'px' });
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue