Add clearfix Class to element
Measure the parentContainter, not the window
Measure with outerHeight(true) and code cleanup.