Demo/src/main/webapp/resources/js/jquery/js/plugin/css3-multi-column.js
// Find the deepest splitable element that sits on the split point.

Find the deepest splitable element that sits on the split point.
Find the deepest splitable element that sits on the split point .
function findSplitPoint(n, newHeight, wrapper) {
		if (n.nodeType == 1) {
			var top = getElementRelativeTop(n, wrapper);
			var bot = top + n.offsetHeight;
			if (top < newHeight && bot > newHeight) {
				bestSplitPoint = n;
				if (isElementSplitable(n)) {
					for (var i = 0; i < n.childNodes.length; i++) {
						findSplitPoint(n.childNodes[i], newHeight, wrapper);
					}
				}
				return;
			}
			if (bot <= newHeight && bot >= secondSplitBottom) {
				secondSplitBottom = bot;
				secondSplitPoint = n;
			}
		}
		return;
	}
function findSplitPoint ( n , newHeight , wrapper ) { if ( n . nodeType == 1 ) { var top = getElementRelativeTop ( n , wrapper ) ; var bot = top + n . offsetHeight ; if ( top < newHeight && bot > newHeight ) { bestSplitPoint = n ; if ( isElementSplitable ( n ) ) { for ( var i = 0 ; i < n . childNodes . length ; i ++ ) { findSplitPoint ( n . childNodes [ i ] , newHeight , wrapper ) ; } } return ; } if ( bot <= newHeight && bot >= secondSplitBottom ) { secondSplitBottom = bot ; secondSplitPoint = n ; } } return ; }
Find the deepest splitable element that sits on the split point.
Find the deepest splitable element that sits on the split point .