]> git.wh0rd.org Git - tt-rss.git/commitdiff
Revert "cdmExpandArticle: force-scroll to headline"
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 20 Mar 2013 06:43:55 +0000 (10:43 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 20 Mar 2013 06:43:55 +0000 (10:43 +0400)
This reverts commit 4895f99b9a6e329494c050b5799542af8e7a3c02.

js/viewfeed.js

index da474a2c00fcee4267ac90ba4fa5cde7ccddeaf1..584fff5748757889e35846fb27a701d345062370 100644 (file)
@@ -1365,7 +1365,6 @@ function cdmExpandArticle(id) {
                }
 
                setActiveArticleId(id);
-               cdmScrollToArticleId(id, true);
 
                elem = $("CICD-" + id);
 
@@ -1378,6 +1377,13 @@ function cdmExpandArticle(id) {
                        Element.show(collapse);
                }
 
+               /* var new_offset = $("RROW-" + id).offsetTop;
+
+               $("headlines-frame").scrollTop += (new_offset-old_offset);
+
+               if ($("RROW-" + id).offsetTop != old_offset)
+                       $("headlines-frame").scrollTop = new_offset; */
+
                toggleUnread(id, 0, true);
                toggleSelected(id);