render_article: properly set headlines offset
This commit is contained in:
parent
0b461ed5f0
commit
c559efcf3b
13
viewfeed.js
13
viewfeed.js
|
@ -202,23 +202,18 @@ function headlines_callback2(transport, feed_cur_page) {
|
||||||
|
|
||||||
function render_article(article) {
|
function render_article(article) {
|
||||||
try {
|
try {
|
||||||
var f = $("content-frame");
|
|
||||||
try {
|
|
||||||
f.scrollTop = 0;
|
|
||||||
} catch (e) { };
|
|
||||||
|
|
||||||
dijit.byId("headlines-wrap-inner").addChild(
|
dijit.byId("headlines-wrap-inner").addChild(
|
||||||
dijit.byId("content-insert"));
|
dijit.byId("content-insert"));
|
||||||
|
|
||||||
var fi = $("content-insert");
|
var c = $("content-insert");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
fi.scrollTop = 0;
|
c.scrollTop = 0;
|
||||||
} catch (e) { };
|
} catch (e) { };
|
||||||
|
|
||||||
fi.innerHTML = article;
|
c.innerHTML = article;
|
||||||
|
|
||||||
// article.evalScripts();
|
correctHeadlinesOffset(getActiveArticleId());
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
exception_error("render_article", e);
|
exception_error("render_article", e);
|
||||||
|
|
Loading…
Reference in New Issue