capacitor-community / date-picker

Native DateTime Picker Plugin for Capacitor Apps
MIT License
87 stars 29 forks source link

Android datepicker is not showing correctly #31

Open jesusbarrientos opened 3 years ago

jesusbarrientos commented 3 years ago

Describe the bug The datepicker has a white area at the right side as a padding.

To Reproduce Steps to reproduce the behavior:

  1. Open datepicker
  2. See error

Expected behavior The datepicker should not have that space in the right side.

Screenshots Screenshot_20210210-134224_Umatch.jpg

Smartphone:

danielprrazevedo commented 3 years ago

Hello @jesusbarrientos. Sorry for the delay in responding. When you use the native date flag, do you have this same problem? I believe this may be due to the size of your display. The display, size and shape of the date picker is something defined by android itself, it is as if this place were something that I have no control over. I will try to reproduce the problem in some emulator and give you feedback, but I would like you to try something for me. Try using <input type="date" /> to see if the problem can also appear like this

jesusbarrientos commented 3 years ago

Thanks for reply @danielprrazevedo .

I'm using datepicker as mentioned in README Usage section.

SmartSelect_20210223-122402_GitHub.jpg

I don't use input of type date because in mobile browsers it shows an icon that it can't hide. For that reason I use datepicker programatically.

jreybaylen commented 3 years ago

I'm having this issue as well. Date picker does not display the correct value in date, min and max parameter and font color as well.

Simulator Screen Shot - iPhone 11 Pro Max - 2021-02-28 at 11 25 38

{ date: '28/02/2021' } and the format is DD/MM/YYYY using moment-timezone

danielprrazevedo commented 3 years ago

@jreybaylen This problem is different from the one mentioned, it just indicates that the selector is being displayed with a kind of padding inside the modal, in your case the selector is working with dates in the wrong way. We'll deal with that in another issue, okay?

jreybaylen commented 3 years ago

@danielprrazevedo Sure. Thank you

Arieru commented 3 years ago

Describe the bug The datepicker has a white area at the right side as a padding.

To Reproduce Steps to reproduce the behavior:

  1. Open datepicker
  2. See error

Expected behavior The datepicker should not have that space in the right side.

Screenshots Screenshot_20210210-134224_Umatch.jpg

Smartphone:

  • Device: Samsung galaxy note 10 lite
  • OS: Android 10
  • Browser: chrome

I have the same issue as well and on top of that, the app crashes when changing device orientation (landscape/portrait) while the date picker is present.

Device: Samsung A50 OS: Android 10

dominicksanchez02 commented 3 years ago

me too, encountered the same issue The datepicker has a white area at the right side as a padding. would like to know if we have an update or fix for this issue? thanks

KAMAELUA commented 10 months ago

Any updates? Issue still exists