Sencha Touch 2: input placeholder in not centered in Android 4
I'm trying to center the placeholder text. It looks centered on IOS, but
still left aligned on Android 4.
/*css code is below*/
#myinput input{
text-align:center!important;
}
#myinput input::-webkit-input-placeholder{
text-align:center!important;
}
//the view (.js file) has
{
xtype: 'emailfield',
name: 'myinput',
id: 'myinput',
required: true,
placeHolder: 'myinput (optional)',
listeners: {
//some listeners are here
}
}
What am I missing?
No comments:
Post a Comment