Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] iOS DatePicker with UIDatePickerStyle.Inline missing month information #13593

Open
mos379 opened this issue Jan 30, 2021 · 10 comments
Open

Comments

@mos379
Copy link

mos379 commented Jan 30, 2021

Description

When changing the presentation of the DatePicker to UIDatePickerStyle.Inline on iOS the presentation is not sized correctly and cuts of the month and Year info

Steps to Reproduce

  1. custom renderer with UIDatePickerStyle.Inline
  2. open Picker

Expected Behavior

showing correct inline calendar with month and year info

Actual Behavior

only showing days with a fragment of the top info

Basic Information

  • Version with issue: 5.0
  • Last known good version: none
  • Platform Target Frameworks:
    • iOS: 14.x
  • NuGet Packages:
  • Affected Devices: all iOS

Screenshots

image

Related issue: #11963

@mos379 mos379 added s/unverified New report that has yet to be verified t/bug 🐛 labels Jan 30, 2021
@rachelkang
Copy link
Contributor

Hi, @mos379 - thanks for submitting this issue! Have you tried running on other versions of iOS? If it looks different, would you be able to share relevant screenshots?

Also, if you could share your project or a sample project reproducing this issue, that would be incredibly helpful in helping us to better understand the issue. Thank you! :)

@rachelkang rachelkang added s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. labels Feb 1, 2021
@mos379
Copy link
Author

mos379 commented Feb 1, 2021

I attached the sample project.
It is the basic template from Visual studio where I added a datepicker in the mainPage and added a custom renderer wfor setting up the inline mode for the picker.

I'm currently not able to test on a different OS version
PickerIssue.zip

@mikebikerider
Copy link

I came across the same issue the day I updated iOS app to Xamarin.Forms 5.0.0.1874. Build 5.0.0.1874 'forced' the UIDatePickerStyle.Automatic, which is same as .Compact. The .Automatic look and feel is quite ugly, and confusing for the end user. I implement a Custom renderer for unrelated Date issue #13366, so I tried the .Inline style - not usable.
Xamarin.Forms 5.0.0.1931'forces' UIDatePickerStyle.Wheels. My best guess, it was an awkward workaround the unsightly
UIDatePickerStyle.Compact. Since I use a CustomRenderer for the DatePicker anyway, I'd prefer the .Inline style work as expected.
I currently settled for .Automatic as more functional than .Wheels . It took Apple a while to figure out end users need to know the Day of Week when selecting. Wheels doesn't show Day of Week, besides being cumbersome to use.

@rachelkang
Copy link
Contributor

@mos379 thanks for the sample and @mikebikerider thanks for sharing!
I'm able to reproduce the behavior you're experiencing

@rachelkang rachelkang added iOS 14 a/style e/4 🕓 4 and removed s/unverified New report that has yet to be verified s/needs-info ❓ A question has been asked that requires an answer before work can continue on this issue. s/needs-repro ❔ This reported issue doesn't include a sample project reproducing the issue. Please provide one. labels Feb 2, 2021
@gil-rodrigues
Copy link

gil-rodrigues commented Apr 26, 2021

Hi all,

I am also experiencing this. Any workaround for the moment? With a renderer of some sort.

Thank you very much

@mos379
Copy link
Author

mos379 commented Sep 11, 2021

@rachelkang any update on this issue?

@Alhaadi-IDB
Copy link

Any update so far?. I also experiencing the same. Thanks to @mikebikerider , by using .automatic style , can solve this issue, but the .automatic behaviour was not what i expected.

@nagurbee
Copy link

Any Update on this issue? I also facing same issue in .inline style.

@mos379
Copy link
Author

mos379 commented Aug 8, 2023

But I fixed it

Just posting a link where there is a picture does not help @Sohel3798 !
How did you fix it?

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

No branches or pull requests

8 participants