MauiEx icon indicating copy to clipboard operation
MauiEx copied to clipboard

The Suggested lists in IOS may limit height

Open hungthe50 opened this issue 6 years ago • 10 comments

The Suggested lists in IOS may limit height, or height limit according to the number of items as on Android, instead of stretching the entire screen Thank you image

hungthe50 avatar May 20 '19 07:05 hungthe50

Is there any presedence for this elsewhere in iOS? Do you have screenshots of others apps doing this?

dotMorten avatar May 20 '19 13:05 dotMorten

image Height of the suggested lists have limit by amount item of ItemsSource, It looks like the image above, Or you can add an attribute to specify the height of the suggestion list Thank you

hungthe50 avatar May 21 '19 08:05 hungthe50

@hungthe50 Can share how you make the column into 2?

rapcgutz avatar May 22 '19 02:05 rapcgutz

The above screenshot is from a Windows Phone. I'd like to see other apps on iOS specifically that does these auto complete lists and don't go all the way down (the control is meant to match the UX patterns of the platform, not to look the same across different platforms)

dotMorten avatar May 22 '19 02:05 dotMorten

image Can you do like this? @dotMorten

hungthe50 avatar May 23 '19 02:05 hungthe50

@gutierrezralph No I copy example on internet, I wan't limit height the suggested list like it in IOS

hungthe50 avatar May 23 '19 02:05 hungthe50

Is there any way for us to use a custom renderer or set a value on the autosuggestbox to force it to behave on iOS as it does on Android? i.e. only display as many rows as there are items, with no empty rows causing it to stretch to the bottom of the screen.

shaunwurdeman avatar Sep 12 '19 12:09 shaunwurdeman

+1 Any updates? @dotMorten

amartsineuskigodeltech avatar Feb 14 '20 13:02 amartsineuskigodeltech

@amartsineuskigodeltech not sure how to address this. iOS constraints are still magic to me. But it's bottom location is handled by this line: https://github.com/dotMorten/XamarinFormsControls/blob/484b77966a16326655075155d7915d6ca2b06caf/AutoSuggestBox/Platform/NativeAutoSuggestBox.iOS.cs#L199

dotMorten avatar Feb 14 '20 15:02 dotMorten

hi doMorten, if you are using ListView for opening the dropdown then set empty footer like footer="" in list Xaml. I think your issue resolved with this query.

irfanrana44772 avatar Aug 31 '20 18:08 irfanrana44772