Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Fix DisplayActionSheet #7025

Merged
merged 1 commit into from
May 11, 2022
Merged

[Windows] Fix DisplayActionSheet #7025

merged 1 commit into from
May 11, 2022

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Fix DisplayActionSheet not appearing and also having a wrong size.

fix-6508

Issues Fixed

Fixes #7004
Fixes #6508

@jsuarezruiz jsuarezruiz added t/bug Something isn't working platform/windows 🪟 area-controls-dialogalert DisplayAlert, dialog labels May 11, 2022
var actionSheet = new Flyout
{
FlyoutPresenterStyle = (UI.Xaml.Style)UI.Xaml.Application.Current.Resources["MauiFlyoutPresenterStyle"],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix the sizing issue.


if (pageParent != null)
actionSheet.ShowAt(pageParent);
else
arguments.SetResult(null);
{
if (current != null && current is FrameworkElement mainPage)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If parent is null (and could happen), try to use directly the current sender.

@rmarinho rmarinho requested review from mattleibow and PureWeen May 11, 2022 13:15
@rmarinho rmarinho added this to the 6.0.300 milestone May 11, 2022
@Redth Redth merged commit 259b4db into main May 11, 2022
@Redth Redth deleted the fix-6508 branch May 11, 2022 13:53
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2023
@samhouts samhouts added the fixed-in-6.0.312 Look for this fix in 6.0.312! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-dialogalert DisplayAlert, dialog fixed-in-6.0.312 Look for this fix in 6.0.312! platform/windows 🪟 t/bug Something isn't working
Projects
None yet
4 participants