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

ie下,inputNode宽度不随输入自动调整 #83

Closed
zero2lin opened this issue Apr 29, 2016 · 2 comments
Closed

ie下,inputNode宽度不随输入自动调整 #83

zero2lin opened this issue Apr 29, 2016 · 2 comments

Comments

@zero2lin
Copy link

http://react-component.github.io/select/examples/multiple.html

https://github.com/react-component/select/blob/master/src/Select.jsx#L133
ie获取inputNode.scrollWidth一直会是16px

@eternalsky
Copy link
Contributor

eternalsky commented May 25, 2016

+1 主要是 IE10,IE11 下

在 IE10/11 下 scrollWidth 总等于 input 的宽度,而不像主流浏览器一样变化。
https://github.com/MartinF/jQuery.Autosize.Input/blob/master/jquery.autosize.input.js 这里一样,采用一个 做 mirror 怎么样?每次 update 的时候读取 span 的宽度。

eternalsky pushed a commit to eternalsky/select that referenced this issue May 26, 2016
@yiminghe
Copy link
Member

6.4.0

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

3 participants