autosize-input
autosize-input copied to clipboard
getComputedStyle().width is not reliable on all browsers.
Hi, I just found out, that Internet Explorer (11) behaves different calculating the width of the input.
using
61: var width = window.getComputedStyle(ghostElement).width
there are different results between IE11 and Chrome for example.
Suggestion: use
var width = ghostElement.offsetWidth, then it works everywhere.