tiaguinho / material-community-components

:panda_face: Angular Material Components created from the community

Home Page:https://tiaguinho.github.io/material-community-components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature(color-picker, time-picker): Provide mobile variant of picker popup

motabass opened this issue · comments

Right now using the pickers on small mobile devices can get cut off:
image

MatDatePicker solves this by using a centered popup for mobile devices

I agree that simply centered would be the reasonable solution here and it should be possible to just use the underlying CDK overlay functionality "centerHorizontally" & "centerVertically" for certain viewport sizes maybe?

I did a workaround for now which prevents it from being cut-off but still does not center it:
2cda8bd