Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

fix(uiSelectCtrl): properly calculate container width #2045

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zollinger
Copy link
Contributor

  • Account for paddings on input container in case box-sizing: border-box
    is set.
  • Added some tests for this case

The other open PR (
#2016) regarding this issue does not work without jQuery.

Closes #1980.

@zollinger zollinger force-pushed the fix/search-input-width branch from cea08ca to 58ddba9 Compare August 23, 2017 13:26
- Account for paddings on input container in case box-sizing: border-box
is set.
- Added some tests for this case

Closes angular-ui#1980.
@joebandenburg
Copy link

I find that the bug persists even without padding because the ui-select-match element has a non-integer width (e.g. 138.34) and there for search box is 1 pixel too large.

@zollinger
Copy link
Contributor Author

I'm running this fix on a production app without problems. Could you maybe create a jsfiddle showing the issue?

@joebandenburg
Copy link

After some more digging, I've found that the cause is if there is no left or right padding on the element. http://plnkr.co/edit/EKXqPepAaswBpOAr9W34?p=preview

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

Successfully merging this pull request may close these issues.

2 participants