ng-elastic icon indicating copy to clipboard operation
ng-elastic copied to clipboard

Fixed height calculations when using padding

Open larssn opened this issue 8 years ago • 0 comments

scrollHeight includes padding, normal element height does not. This commit fixes that problem by subtracting the padding when setting height.

getComputedStyle always returns the unit in pixels, so the code should still work even if you're using em or rem as your padding unit.

larssn avatar Jul 03 '17 12:07 larssn