Styling Ionic input date

This is an Ionic 1 project. Putting this:

<div style="width:100% !important; background-color:gray;">
<input type="date" style="width:100% !important;border:2 px solid red"    />

and then viewing it in iOS simulator, I see that the field itself doesn’t take all the width. It takes more or less half width. I can see that the div stretch to 100%. But the input is still not able to stretch. Is there a solution to this?

Ok forget about it. Putting min-width solves the issue.