Skip to content
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
@NaturalL

Description

@NaturalL

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

Jefiozie commented on Jun 9, 2017

@Jefiozie
Contributor

I think you are refering to this line 839 but i don't see the - 10.

Please share some more info. Thanks.

NaturalL

NaturalL commented on Jun 10, 2017

@NaturalL
Author

@Jefiozie This commit 7ad4ef1 remove "- 10", but I think "- 10" is necessary.

aurelienlt

aurelienlt commented on Jun 12, 2017

@aurelienlt

Already known issue: #1980
But strangely it has never been fixed.

added a commit that references this issue on Jun 30, 2017

fixes angular-ui#2010 without breaking input width in simple case

1ee2a46
added 2 commits that reference this issue on Aug 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @NaturalL@aurelienlt@Jefiozie

        Issue actions

          Wrong inputWidth, input too long · Issue #2010 · angular-ui/ui-select