]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix setting scrollTop on headlines buffer
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Nov 2010 07:09:19 +0000 (10:09 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Nov 2010 07:09:19 +0000 (10:09 +0300)
viewfeed.js

index 4c9edfbd69f7e29413da63b87653f9affd3237c6..a53c04f6114dcc12c20747d7baa7f71769c541cf 100644 (file)
@@ -1226,7 +1226,7 @@ function editTagsInsert() {
 
 function cdmScrollToArticleId(id) {
        try {
-               var ctr = $("headlinesInnerContainer");
+               var ctr = $("headlines-frame");
                var e = $("RROW-" + id);
 
                if (!e || !ctr) return;
@@ -1748,10 +1748,10 @@ function cdmExpandArticle(id) {
 
                var new_offset = $("RROW-" + id).offsetTop;
 
-               $("headlinesInnerContainer").scrollTop += (new_offset-old_offset);
+               $("headlines-frame").scrollTop += (new_offset-old_offset);
 
                if ($("RROW-" + id).offsetTop != old_offset) 
-                       $("headlinesInnerContainer").scrollTop = new_offset;
+                       $("headlines-frame").scrollTop = new_offset;
 
                toggleUnread(id, 0, true);
                toggleSelected(id);
@@ -2207,7 +2207,7 @@ function correctHeadlinesOffset(id) {
        
        try {
 
-               var container = $("headlinesInnerContainer");
+               var container = $("headlines-frame");
                var row = $("RROW-" + id);
        
                var viewport = container.offsetHeight;