This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Wrong inputWidth, input too long #2010
Open
Description
Bug description: Wrong inputWidth, the inputWidth shoud minus the container border-width or padding with different theme.
- var inputWidth = containerWidth - input.offsetLeft - 10;
+ var inputWidth = containerWidth - input.offsetLeft;
Link to minimally-working plunker that reproduces the issue:
http://plnkr.co/edit/OAemHKmhjJmB0iF2lMX0
UI-Select: Version: 0.19.8
Activity
Jefiozie commentedon Jun 9, 2017
I think you are refering to this line 839 but i don't see the - 10.
Please share some more info. Thanks.
NaturalL commentedon Jun 10, 2017
@Jefiozie This commit 7ad4ef1 remove "- 10", but I think "- 10" is necessary.
aurelienlt commentedon Jun 12, 2017
Already known issue: #1980
But strangely it has never been fixed.
fix(uiSelectCtrl): fix input width calculations
fix(uiSelectCtrl): fix input width calculations
fixes angular-ui#2010 without breaking input width in simple case
quick-fix angular-ui#1980 and angular-ui#2010 -- input width for "mul…
another quick-fix for angular-ui#1980 and angular-ui#2010 -- input wi…