Merge pull request #16798 from jmattt/gridview-fix

Fix scrolling after switching to grid view
This commit is contained in:
Roeland Jago Douma 2019-08-21 22:06:39 +02:00 committed by GitHub
commit 89d7ffebd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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