Browse Source
Fix grid view
Signed-off-by: Jonathan Matthews <jgit@pixelnet.work>
pull/16798/head
Jonathan Matthews
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
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(); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
|