]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix grid view 16798/head
authorJonathan Matthews <54287723+jmattt@users.noreply.github.com>
Mon, 19 Aug 2019 19:18:05 +0000 (15:18 -0400)
committerGitHub <noreply@github.com>
Mon, 19 Aug 2019 19:18:05 +0000 (15:18 -0400)
Signed-off-by: Jonathan Matthews <jgit@pixelnet.work>
apps/files/js/filelist.js

index 7a6665b0807d2fcbf1a501d8c0aefee724745fe0..dc875d40c12ee0d52fd0023f643f5c31f56fd6f1 100644 (file)
                                .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();
+                       }
                },
 
                /**