tweak cdmExpandArticle behavior with scrolling (refs #604) (2)
This commit is contained in:
parent
f06f201f1e
commit
5b9cb07d01
|
@ -1392,10 +1392,8 @@ function cdmExpandArticle(id) {
|
||||||
|
|
||||||
var new_offset = $("RROW-" + id).offsetTop;
|
var new_offset = $("RROW-" + id).offsetTop;
|
||||||
|
|
||||||
$("headlines-frame").scrollTop += (new_offset-old_offset);
|
if (old_offset > new_offset)
|
||||||
|
$("headlines-frame").scrollTop -= (old_offset-new_offset);
|
||||||
// if ($("RROW-" + id).offsetTop != old_offset)
|
|
||||||
// $("headlines-frame").scrollTop = new_offset;
|
|
||||||
|
|
||||||
toggleUnread(id, 0, true);
|
toggleUnread(id, 0, true);
|
||||||
toggleSelected(id);
|
toggleSelected(id);
|
||||||
|
|
Loading…
Reference in New Issue