Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

Update masonry-init.js for new wordpress version #134

Open
wants to merge 1 commit into
base: production
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion js/vendor/masonry-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Masonry.prototype._getItemLayoutPosition = function(item) {
var colSpan = Math[mathMethod](item.size.outerWidth / this.columnWidth);
colSpan = Math.min( colSpan, this.cols );

var colGroup = this._getColGroup( colSpan );
var colGroup = this._getTopColGroup( colSpan );
// get the minimum Y value from the columns
// var minimumY = Math.min.apply( Math, colGroup );
// var shortColIndex = colGroup.indexOf( minimumY );
Expand Down