]> git.wh0rd.org Git - tt-rss.git/commitdiff
cdmExpandArticle: force-scroll to headline
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 20 Mar 2013 06:27:47 +0000 (10:27 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 20 Mar 2013 06:27:47 +0000 (10:27 +0400)
js/viewfeed.js

index 584fff5748757889e35846fb27a701d345062370..da474a2c00fcee4267ac90ba4fa5cde7ccddeaf1 100644 (file)
@@ -1365,6 +1365,7 @@ function cdmExpandArticle(id) {
                }
 
                setActiveArticleId(id);
+               cdmScrollToArticleId(id, true);
 
                elem = $("CICD-" + id);
 
@@ -1377,13 +1378,6 @@ 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);