hidden feedlist: save scroll offset
This commit is contained in:
parent
1924fa1bbf
commit
8b557634e2
|
@ -13,6 +13,7 @@ var active_feed_id = 0;
|
||||||
var active_feed_is_cat = false;
|
var active_feed_is_cat = false;
|
||||||
var number_of_feeds = 0;
|
var number_of_feeds = 0;
|
||||||
var sanity_check_done = false;
|
var sanity_check_done = false;
|
||||||
|
var _hfd_scrolltop = 0;
|
||||||
|
|
||||||
var init_params = new Object();
|
var init_params = new Object();
|
||||||
|
|
||||||
|
@ -748,7 +749,9 @@ function toggle_feedlist() {
|
||||||
if (!Element.visible(fl)) {
|
if (!Element.visible(fl)) {
|
||||||
Element.show(fl);
|
Element.show(fl);
|
||||||
fl.style.zIndex = 30;
|
fl.style.zIndex = 30;
|
||||||
|
fl.scrollTop = _hfd_scrolltop;
|
||||||
} else {
|
} else {
|
||||||
|
_hfd_scrolltop = fl.scrollTop;
|
||||||
Element.hide(fl);
|
Element.hide(fl);
|
||||||
// Effect.Fade(fl, {duration : 0.2,
|
// Effect.Fade(fl, {duration : 0.2,
|
||||||
// queue: { position: 'end', scope: 'FLFADEQ', limit: 1 }});
|
// queue: { position: 'end', scope: 'FLFADEQ', limit: 1 }});
|
||||||
|
|
Loading…
Reference in New Issue