mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Merge pull request #5442 from yw80/1.9.x
Fixed the items count in media library when modify the item size in css
This commit is contained in:
@@ -71,11 +71,12 @@ $(function () {
|
||||
|
||||
var listWidth = $('#media-library-main-list').width();
|
||||
var listHeight = $('#media-library-main-list').height();
|
||||
var itemSize = $('.thumbnail').first().width();
|
||||
var itemWidth = $('.thumbnail').first().width();
|
||||
var itemHeight = $('.thumbnail').first().height();
|
||||
var draftText = $("#media-library").data("draft-text");
|
||||
|
||||
var itemsPerRow = Math.floor(listWidth / itemSize);
|
||||
var itemsPerColumn = Math.ceil(listHeight / itemSize);
|
||||
var itemsPerRow = Math.floor(listWidth / itemWidth);
|
||||
var itemsPerColumn = Math.ceil(listHeight / itemHeight);
|
||||
|
||||
var pageCount = itemsPerRow * itemsPerColumn;
|
||||
|
||||
|
Reference in New Issue
Block a user