unmade / am-date-picker

angular material date picker
MIT License
21 stars 13 forks source link

Setting input icon to false leaves empty space #12

Closed henritoivar closed 8 years ago

henritoivar commented 8 years ago

First of all thanks for creating an alternative to the current angular material datepicker. If a few things minor things would be different i would very happily use this as a replacement.

The issue: Setting am-show-input-icon to false hides the icon but leaves padding/empty space. This looks off when you have other elements in your form that do not have an icon. Also the default behavior for angular material form elements is that removing an icon does not leave empty space.

Also it would be nice if the clicking on the icon would open the datepicker dialog.

unmade commented 8 years ago

Thank you! It surely shouldn't leave padding. The problem is, when md-input-container has md-icon inside, it automatically adds class has-icon which results in padding. I try to solve it.

unmade commented 8 years ago

Finally I have found time to solve this problem. Input icon doesn't leave empty space now.