mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 04:51:46 -04:00
Merge pull request #16798 from jmattt/gridview-fix
Fix scrolling after switching to grid view
This commit is contained in:
commit
89d7ffebd5
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue