]> git.wh0rd.org Git - tt-rss.git/commitdiff
render_article: properly set headlines offset
authorAndrew Dolgov <fox@fakecake.org>
Tue, 16 Nov 2010 16:15:04 +0000 (19:15 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Tue, 16 Nov 2010 16:15:04 +0000 (19:15 +0300)
viewfeed.js

index 5a8e929ab080c117d53380c25a9f86cec3383b7f..bacd830142d0e00c7e27342cf576d572a6fed645 100644 (file)
@@ -202,23 +202,18 @@ function headlines_callback2(transport, feed_cur_page) {
 
 function render_article(article) {
        try {
-               var f = $("content-frame");
-               try {
-                       f.scrollTop = 0;
-               } catch (e) { };
-
                dijit.byId("headlines-wrap-inner").addChild(
                                dijit.byId("content-insert"));
 
-               var fi = $("content-insert");
+               var c = $("content-insert");
 
                try {
-                       fi.scrollTop = 0;
+                       c.scrollTop = 0;
                } catch (e) { };
                
-               fi.innerHTML = article;
-               
-//             article.evalScripts();          
+               c.innerHTML = article;
+
+               correctHeadlinesOffset(getActiveArticleId());           
 
        } catch (e) {
                exception_error("render_article", e);