Merge pull request #17342 from nextcloud/backport/16798/stable16
[stable16] Fix scrolling after switching to grid view
This commit is contained in:
commit
387eeeba7f
|
@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue