Skip to content

Commit 03248eb

Browse files
committed
Merge pull request adamwulf#125 from kirara/master
Fix not splitting elements and unnecessary overflowing in close fit case
2 parents a604e6b + f01e716 commit 03248eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.columnizer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
// we can't split an img in half, so just add it
258258
// to the column and remove it from the pullOutHere section
259259
$cloneMe.remove();
260-
}else if(!$cloneMe.hasClass(prefixTheClassName("dontsplit")) && $parentColumn.height() < targetHeight + 20){
260+
}else if($cloneMe.hasClass(prefixTheClassName("dontsplit")) && $parentColumn.height() < targetHeight + 20){
261261
//
262262
// pretty close fit, and we're not allowed to split it, so just
263263
// add it to the column, remove from pullOutHere, and be done

0 commit comments

Comments
 (0)