aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-08-21 22:06:39 +0200
committerGitHub <noreply@github.com>2019-08-21 22:06:39 +0200
commit89d7ffebd51d3975e2310cee9bf95b031f73fe3c (patch)
tree04859d76907062cc307941f5b1d861272b103ddd /apps
parent1e74ffd46bb1f27abe0932ee6f83c2b4eb8d8ae6 (diff)
parent1ae45bdaa167b3696ebe5100a76d9359d0cb80a8 (diff)
downloadnextcloud-server-89d7ffebd51d3975e2310cee9bf95b031f73fe3c.tar.gz
nextcloud-server-89d7ffebd51d3975e2310cee9bf95b031f73fe3c.zip
Merge pull request #16798 from jmattt/gridview-fix
Fix scrolling after switching to grid view
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 7a6665b0807..dc875d40c12 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -672,6 +672,11 @@
.addClass(show ? 'icon-toggle-filelist' : 'icon-toggle-pictures')
$('.list-container').toggleClass('view-grid', show);
+ if (show) {
+ // If switching into grid view from list view, too few files might be displayed
+ // Try rendering the next page
+ this._onScroll();
+ }
},
/**