Skip to content

[MacCatalyst] DisplayActionSheet is spreading horizontal #29085

@TomQv

Description

@TomQv

Description

DisplayActionSheet with more then 6 commands is displayed as a horizontal strip:

Image

If its 6 or less commands, its displayed correctly vertical:

Image

On iOS, Android and Windows its always correctly vertical. Only on MacCatalyst its this odd behaviour. Also only on MacCatalyst the app-icon is also displayed in the DisplayActionSheet, which I don't want.

So, is there a way to have MacCatalyst display the DisplayActionSheet always vertically and without app-icon?

Using MAUI 9.0.40

Steps to Reproduce

  1. Create a new Maui-App with a Button
  2. in the clicked-handler open a DisplayActionSheet:
var comands = new string[]{"command1","command2","command3",
                               "command4","command5","command6","command7" }; 
var action = await currentpage.DisplayActionSheet("Action", "Cancel", null, commands}

If its 7 or more commands, its displayed horizontal. Up to 6 commands its displayed correctly vertically.

Link to public reproduction project repository

No response

Version with bug

9.0.40 SR4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

macOS 14.7.1

Did you find any workaround?

No.

Relevant log output

Metadata

Metadata

Assignees

Labels

area-controls-dialogalertDisplayAlert, dialogexternalplatform/macosmacOS / Mac Catalysts/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions