Skip to content
Merged
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
7 changes: 7 additions & 0 deletions src/jquery.columnizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,13 @@
// this node still has non-text nodes to split
// add the split class and then recur
$cloneMe.addClass(prefixTheClassName("split"));

//if this node was ol element, the child should continue the number ordering
if($cloneMe.get(0).tagName == 'OL'){
var startWith = $clone.get(0).childElementCount + $clone.get(0).start;
$cloneMe.attr('start',startWith+1);
}

if($cloneMe.children().length){
split($clone, $cloneMe, $parentColumn, targetHeight);
}
Expand Down