autosize-input icon indicating copy to clipboard operation
autosize-input copied to clipboard

getComputedStyle().width is not reliable on all browsers.

Open wokung opened this issue 5 years ago • 0 comments

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.

wokung avatar Aug 01 '19 12:08 wokung