Keep the scroll position on redraw in drive
This commit is contained in:
@@ -1433,6 +1433,7 @@ define([
|
|||||||
}
|
}
|
||||||
appStatus.ready(false);
|
appStatus.ready(false);
|
||||||
currentPath = path;
|
currentPath = path;
|
||||||
|
var s = $content.scrollTop() || 0;
|
||||||
$content.html("");
|
$content.html("");
|
||||||
if (!path || path.length === 0) {
|
if (!path || path.length === 0) {
|
||||||
path = [ROOT];
|
path = [ROOT];
|
||||||
@@ -1539,6 +1540,7 @@ define([
|
|||||||
}
|
}
|
||||||
//$content.append($toolbar).append($title).append($info).append($dirContent);
|
//$content.append($toolbar).append($title).append($info).append($dirContent);
|
||||||
$content.append($info).append($dirContent);
|
$content.append($info).append($dirContent);
|
||||||
|
$content.scrollTop(s);
|
||||||
appStatus.ready(true);
|
appStatus.ready(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user