bendavis78 / paper-date-picker

Material design date picker component for polymer
http://bendavis78.github.io/paper-date-picker/
MIT License
225 stars 132 forks source link

Wrong styles when the calendar is hidden #193

Closed felixzapata closed 7 years ago

felixzapata commented 7 years ago

hi, when you hide the calendar (with display:none for example) and you use a button to show it, the styles are wrong calculated. It is look like the width for the days are not the correct.

admwx7 commented 7 years ago

This is actually a bug I've encountered in quite a few elements, it's due to how iron-resizable-behavior handles the resizing functionality. Try calling notifyResize() on your element once you've toggled it to visible @felixzapata.

felixzapata commented 7 years ago

Thanks. It works calling to the notifyResize().

Another option to avoid the issue that can be valid depending on the project is to hide the element with a class like sr-only.