Skip to content

Commit 91e3d60

Browse files
committed
fixed issue where nested dontend would stop a column from being split properly.
1 parent 4c1c1db commit 91e3d60

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/jquery.columnizer.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -461,11 +461,7 @@
461461
var $col = $inBox.children().eq(i);
462462
columnize($col, $destroyable, $col, targetHeight);
463463
// make sure that the last item in the column isn't a "dontend"
464-
if(!$destroyable.contents().find(":first-child").hasClass(prefixTheClassName("dontend"))){
465-
split($col, $destroyable, $col, targetHeight);
466-
}else{
467-
// alert("not splitting a dontend");
468-
}
464+
split($col, $destroyable, $col, targetHeight);
469465

470466
while($col.contents(":last").length && checkDontEndColumn($col.contents(":last").get(0))){
471467
var $lastKid = $col.contents(":last");

0 commit comments

Comments
 (0)