From 5cedfd5e37e6c62b68ac19031e4602963fb4007d Mon Sep 17 00:00:00 2001 From: Sune Radich Vestergaard Date: Mon, 25 Jan 2016 12:42:05 +0100 Subject: [PATCH] Use the outerHeight as measure, to get include all margins and paddings when comparing heights --- angular-vertilize.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/angular-vertilize.js b/angular-vertilize.js index 6556218..0ab0cb5 100644 --- a/angular-vertilize.js +++ b/angular-vertilize.js @@ -76,7 +76,7 @@ visibility: 'hidden' }); element.after(clone); - var realHeight = clone.height(); + var realHeight = clone.outerHeight(); clone['remove'](); return realHeight; };