dotMorten / MauiEx

A set of .NET MAUI controls
Apache License 2.0
224 stars 55 forks source link

MacCatalyst displays suggestions using `UITableView` all the way down #101

Open MartyIX opened 11 months ago

MartyIX commented 11 months ago

Description

Steps to Reproduce

  1. Run code from https://github.com/MartyIX/MauiEx/tree/maccatalyst/UITableView-demo (master + one commit)
  2. Click the "Simple auto-completion" button
  3. Type "United" in the "Entry a country" box

Expected Behavior

The UITableView showing suggestions should be capped to the number of found suggestions. So it should have the height to accomodate two suggestions and it should not be anchored to the bottom of the window.

Actual Behavior

UITableView cover the area to the bottom of the window. It does not take into account number of suggestions.

Basic Information

Screenshots

On Windows, I can see

image

and now when the suggestions are shown:

image

On MacCatalyst, I can see

image

(Notice "This text is hidden on MacCatalyst")

and now when suggestions are shown:

image

so the text "This text is hidden on MacCatalyst" is hidden. In this sample, it looks sort of OK but in my real project it looks ugly.

Reproduction Link

https://github.com/MartyIX/MauiEx/tree/maccatalyst/UITableView-demo