From 931f7619c0c199a231bf7261aab474f2af034927 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 15 Mar 2017 17:30:52 +0100 Subject: [PATCH 1/3] Keep the scroll position on redraw in drive --- www/drive/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/www/drive/main.js b/www/drive/main.js index 5bb876531..b843afee2 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -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); }; From 9a32fb1999e06c8202da38a758933e49eff00e3a Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 15 Mar 2017 17:34:06 +0100 Subject: [PATCH 2/3] Fix sub-folders changing position in the tree when renaming them --- www/drive/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/drive/main.js b/www/drive/main.js index b843afee2..a4989fe87 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -1626,7 +1626,8 @@ define([ // Display root content var $list = $('