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

In datetimepickermode, view goes outside the alert with style set as RMActionControllerStyleWhite #81

Open
hardikamal opened this issue Dec 6, 2017 · 2 comments

Comments

@hardikamal
Copy link

Hi @CooperRS ,

Thanks for the awesome library.

The "M" and "W" of monday and wednesday goes out of the alertbox view when style is set as RMActionControllerStyleWhite. Please help me out with this.

@CooperRS
Copy link
Owner

CooperRS commented Dec 6, 2017

Hey!

Do you have a screenshot of the issue? Is it reproducible with all iPhone screen sizes and on all iOS versions?

I'm afraid there is not much we can do about it. If I'm right, then the UIDatePicker from Apple assumes a fixed width (the width of the device screen) and tries to fill it. But RMActionControllerStyleWhite as well as RMActionControllerStyleBlack add a little margin to the left and right and might cut some of the UIDatePickers content. In this case you have two options:

  1. Use one of the sheet styles
  2. Switch over to RMActionController and use you own date picker view inside it.

Best regards,
Roland

@hardikamal
Copy link
Author

img_0532

Its iPhone 5s screenshot. I think its because of width. Can you help me fix this without switching to stylesheet or RMActionController.

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

2 participants