dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.95k stars 1.7k forks source link

MAUI Windows Picker scroll bar doesn't appear when there are 14 items #23570

Open PandulaASM opened 1 month ago

PandulaASM commented 1 month ago

Description

When using the picker module The Maximum capacity a picker can show is 13 items. below are images of 13 Items in a picker.

image image

When the picker item count reaches 14 the scroll bar should be activated it doesn't. below images are with 14 items image image image

How ever when the item count hits 15 the scroll bar is activated.  image image

Steps to Reproduce

  1. Create a Page.
  2. Add a Picker and add 14 items
  3. The picker doesn't show all items but doesn't show a scroll bar as well.
  4. Add another item to the item list.
  5. The scroll bar will be visible.

Link to public reproduction project repository

No response

Version with bug

8.0.70 SR7

Is this a regression from previous behavior?

No, this is something new

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 10.0.1776

Did you find any workaround?

No response

Relevant log output

No response

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

ninachen03 commented 1 month ago

This issue has been verified using Visual Studio 17.11.0 Preview 3 (8.0.70 & 8.0.3). Can repro it.

MartyIX commented 1 month ago

(@PandulaASM It would be lovely to share your repro sample as text (as opposed to an image). Then it's easy to try with your exact code (perhaps it really matters how exactly it is written).)

ninachen03 commented 1 month ago

@MartyIX @PureWeen I created a simple Sample, you just need to add or delete the selection items in MainPage.xaml when verifying.

MauiApp19.zip

image

PandulaASM commented 3 weeks ago

Thanks @ninachen03