ng-elastic
ng-elastic copied to clipboard
Fixed height calculations when using padding
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.