Keep the scroll position on redraw in drive

This commit is contained in:
yflory
2017-03-15 17:30:52 +01:00
parent 0607c3bbf3
commit 931f7619c0

View File

@@ -1433,6 +1433,7 @@ define([
}
appStatus.ready(false);
currentPath = path;
var s = $content.scrollTop() || 0;
$content.html("");
if (!path || path.length === 0) {
path = [ROOT];
@@ -1539,6 +1540,7 @@ define([
}
//$content.append($toolbar).append($title).append($info).append($dirContent);
$content.append($info).append($dirContent);
$content.scrollTop(s);
appStatus.ready(true);
};