Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem using on mobile devices #69

Open
milica opened this issue Dec 14, 2015 · 0 comments
Open

Problem using on mobile devices #69

milica opened this issue Dec 14, 2015 · 0 comments

Comments

@milica
Copy link

milica commented Dec 14, 2015

Hello there!

Your picker is super great and light, I like it a lot!
But I found one problem when trying to use it on mobile devices for example.
First of all I had to override the width of the modal (I need it to be less than 300, let's say 260).
The thing is that you have fixed width for the picker-modal (which is 300), and this is used to determine position of the modal:
https://github.com/restorando/angular-pickadate/blob/master/src/angular-pickadate.js#L49

Is there any chance that you fix this because this rule doesn't work for smaller screens or if you want to costumize the size of the modal, which makes picker modal clipped from the left side?
One of the solution would be to provide size (or width) as parameter and return it as part of the computeStyles and use it instead of fixed 300 value in order to determine position, what do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant