Fix content scroll.

This commit is contained in:
Lars Jung 2015-04-29 20:02:57 +02:00
parent 7704a00d7b
commit 0faf399abd

View file

@ -70,9 +70,6 @@ modulejs.define('view/content', ['_', '$', 'core/event', 'core/format', 'core/lo
}
$iconImg.attr('src', item.icon).attr('alt', item.type);
if (item.$view) {
item.$view.replaceWith($html);
}
item.$view = $html;
return $html;
@ -111,7 +108,7 @@ modulejs.define('view/content', ['_', '$', 'core/event', 'core/format', 'core/lo
$empty.hide();
}
$('html,body').scrollLeft(0).scrollTop(0);
$content.scrollLeft(0).scrollTop(0);
}
function onLocationRefreshed(item, added, removed) {