diff options
author | Andrew Dolgov <[email protected]> | 2013-03-21 09:32:04 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-03-21 09:32:04 +0400 |
commit | 5b9cb07d0169e0b1888398c0473c690d7476e12b (patch) | |
tree | 7a0f8f0aa4cd655d489c78188cee504e0d1d0e64 /js/viewfeed.js | |
parent | f06f201f1ec4fb749c4ae4500f97517ca9883945 (diff) |
tweak cdmExpandArticle behavior with scrolling (refs #604) (2)
Diffstat (limited to 'js/viewfeed.js')
-rw-r--r-- | js/viewfeed.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index a557b1b18..014946af8 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1392,10 +1392,8 @@ function cdmExpandArticle(id) { var new_offset = $("RROW-" + id).offsetTop; - $("headlines-frame").scrollTop += (new_offset-old_offset); - -// if ($("RROW-" + id).offsetTop != old_offset) -// $("headlines-frame").scrollTop = new_offset; + if (old_offset > new_offset) + $("headlines-frame").scrollTop -= (old_offset-new_offset); toggleUnread(id, 0, true); toggleSelected(id); |