use .outerHeight(true) instead of .height()

.height() doesn't take margins, paddings and borders into consideration