Merge pull request #17342 from nextcloud/backport/16798/stable16

[stable16] Fix scrolling after switching to grid view
This commit is contained in:
Roeland Jago Douma 2019-10-01 12:55:15 +02:00 committed by GitHub
commit 387eeeba7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -674,6 +674,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();
}
},
/**