Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wokung opened this issue Aug 1, 2019 · 0 comments
Open

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

wokung opened this issue Aug 1, 2019 · 0 comments

Comments

@wokung
Copy link

wokung commented Aug 1, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant