varemenos
1/28/2012 - 2:23 AM

jQuery - calculate max widget height

jQuery - calculate max widget height

function maxHeight(selected){
	var current = 0, max = 0;

	$(selected).each(function(){
		current = $(this).height();
		max = Math.max(current, max);
	});
	$(selected).height(max);
}