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

Multiple select, search field: Removes padding on mobile Safari. #3605

Merged
merged 1 commit into from
Aug 20, 2015
Merged

Multiple select, search field: Removes padding on mobile Safari. #3605

merged 1 commit into from
Aug 20, 2015

Conversation

molily
Copy link
Contributor

@molily molily commented Jul 23, 2015

On iOS Safari (tested with iOS 7.1 and 8.4 on iOS simulator), inputs have a large default padding. With an inline width starting at 1.5em, the first characters entered are cut off when there is already a selection. See screenshots.

“X” entered:
x-entered-and-cut-off

Styles:
ua-styles
applied-padding

Not sure if disabling the padding completely is the right solution, but it worked for us. This might affect the overall select height, but this way it’s at least consistent across browsers.

@OtherCroissant
Copy link

+1

@molily molily changed the title Multiple select, search field: Removes padding on iOS. Multiple select, search field: Removes padding on mobile Safari. Jul 23, 2015
@kevin-brown kevin-brown added this to the 4.0.1 milestone Jul 24, 2015
kevin-brown added a commit that referenced this pull request Aug 20, 2015
Multiple select, search field: Removes padding on mobile Safari.
@kevin-brown kevin-brown merged commit ea53881 into select2:master Aug 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants