diff options
author | Jonathan Matthews <54287723+jmattt@users.noreply.github.com> | 2019-08-19 15:18:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-19 15:18:05 -0400 |
commit | 1ae45bdaa167b3696ebe5100a76d9359d0cb80a8 (patch) | |
tree | 57cd74d42206ec355bfc0ce3799676593edbf48e /apps/files | |
parent | 1521da14ff292cb257f442a5f16c41b29faec337 (diff) | |
download | nextcloud-server-1ae45bdaa167b3696ebe5100a76d9359d0cb80a8.tar.gz nextcloud-server-1ae45bdaa167b3696ebe5100a76d9359d0cb80a8.zip |
Fix grid view
Signed-off-by: Jonathan Matthews <jgit@pixelnet.work>
Diffstat (limited to 'apps/files')
-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(); + } }, /** |