Open Quaybe opened 7 months ago
We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.
Verified this on Visual Studio Enterprise 17.9.0 Preview 2(8.0.3). Repro on iOS 17.0, not repro on Windows 11 and Android 14.0-API34 with below Project: iOSPickerBug.zip
@PureWeen @Quaybe a possible fix here :) https://github.com/dotnet/maui/pull/20207
Description
With the Picker in iOS, the picker does not resize automatically after selection. If you select an item that is longer than the original value of the Picker box, it is cut off:
iOS:![image](https://github.com/dotnet/maui/assets/99894209/6cf36539-3e63-45b7-af8e-99c2ee3ee16a)
Expectation: The Picker box should resize accordingly to display the longer string. This is the behavior in Windows and Android, this issue only applies to iOS. Have not tested Mac.
Android:![image](https://github.com/dotnet/maui/assets/99894209/01ff4209-9616-494f-b7f4-73311929c001)
Windows:![image](https://github.com/dotnet/maui/assets/99894209/adc80fad-9b62-4a66-8c60-f43be92760b2)
Steps to Reproduce
Expectation: The Picker box should resize accordingly to display the longer string. This is the behavior in Windows and Android, this issue only applies to iOS. Have not tested Mac.
Link to public reproduction project repository
https://github.com/Quaybe/iOS-Picker-Bug
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 17
Did you find any workaround?
Disable and enable the Picker every time the selection is changed, and it is forced to redraw to the correct size. This is my workaround currently for iOS.
Relevant log output
No response