Skip to content

Resolve input=number width issue for Android 4.1 #5181

merged 2 commits into from Oct 16, 2012

2 participants


Added CSS to resolve the issue as suggested by Todd Parker and Jasper DeGroot:

input[type=number]::-webkit-outer-spin-button { margin: 0; }

JS Bin example of the fix:

Tested in iOS 5, iOS 6, Android 2.3, Android 4.1, Chrome 22.0.1229.94, Firefox 16.0.1

Jonah Schulte added some commits Oct 16, 2012
Jonah Schulte inputs: add margin 0 for webkit-inner-spin-button/webkit-outer-spin-b…
…utton to resolve android 4.1 width issue for type=number fields. Fixes #5131
Jonah Schulte inputs: remove webkit-inner-spin-button and webkit-appearance:none as…
… they caused an unwanted change in Chrome. Fixes #5131
@gseguin gseguin merged commit 016468d into jquery:master Oct 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.