Fix grid view
Signed-off-by: Jonathan Matthews <jgit@pixelnet.work>
This commit is contained in:
parent
d4f3bfb4cc
commit
4cd718efae
|
@ -674,6 +674,11 @@
|
||||||
.addClass(show ? 'icon-toggle-filelist' : 'icon-toggle-pictures')
|
.addClass(show ? 'icon-toggle-filelist' : 'icon-toggle-pictures')
|
||||||
|
|
||||||
$('.list-container').toggleClass('view-grid', show);
|
$('.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