diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-08-21 22:06:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-21 22:06:39 +0200 |
commit | 89d7ffebd51d3975e2310cee9bf95b031f73fe3c (patch) | |
tree | 04859d76907062cc307941f5b1d861272b103ddd /apps | |
parent | 1e74ffd46bb1f27abe0932ee6f83c2b4eb8d8ae6 (diff) | |
parent | 1ae45bdaa167b3696ebe5100a76d9359d0cb80a8 (diff) | |
download | nextcloud-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.js | 5 |
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(); + } }, /** |