Skip to content
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
6 changes: 5 additions & 1 deletion src/jquery.columnizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
var defaults = {
// default width of columns
width: 400,
//This sets targetHeight to the parents height if it is true
useParentHeight:false,
// optional # of columns instead of width
columns : false,
// true to build columns once regardless of window resize
Expand Down Expand Up @@ -422,7 +424,9 @@
maxLoops = 1;
targetHeight = optionHeight;
scrollHorizontally = true;
}
} else if(options.useParentHeight) {
targetHeight = maxHeight;
}

//
// We loop as we try and workout a good height to use. We know it initially as an average
Expand Down