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

Fixup Flyout Template Parts #8022

Merged
merged 6 commits into from
Jun 23, 2022
Merged

Fixup Flyout Template Parts #8022

merged 6 commits into from
Jun 23, 2022

Conversation

PureWeen
Copy link
Member

Description of Change

  • Overhaul the flyout APIs to work with the new MAUI layout expectations.
  • Add better platform level test coverage for coverage that used to be in Xamarin.UITest

Issues Fixed

Fixes #6061

{
public partial class SandboxShell : Shell
{
public SandboxShell()
Copy link
Member Author

Choose a reason for hiding this comment

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

Nobody worry. This is just adding the file for easier testing purposes. I haven't changed the sandbox to default to shell

@Eilon Eilon added the area-controls-shell Shell Navigation, Routes, Tabs, Flyout label Jun 14, 2022
@PureWeen PureWeen added this to the 6.0-sr2 milestone Jun 15, 2022
@PureWeen PureWeen linked an issue Jun 15, 2022 that may be closed by this pull request
@rmarinho rmarinho requested a review from mattleibow June 21, 2022 19:10
@rachelkang rachelkang self-requested a review June 22, 2022 15:22
@PureWeen PureWeen requested a review from rachelkang June 22, 2022 17:27
@@ -42,5 +42,14 @@ public static void AssertWithMessage(Action assertion, string message)
Assert.True(false, $"Message: {message} Failure: {e}");
}
}

public static void CloseEnough(double expected, double actual, double epsilon = 0.2, string? message = null)
Copy link
Member

Choose a reason for hiding this comment

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

Why is it that we can't get equal but only "close enough" with the various flyout frame measurements?

Copy link
Member Author

Choose a reason for hiding this comment

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

The conversion of our DP values to pixels based on the density of the device and then back to DP will result in some fractional precision loss. A 0.2 epsilon represents less than half a pixel.

Copy link
Member

@rachelkang rachelkang left a comment

Choose a reason for hiding this comment

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

LGTM :) and validated this indeed fixes #6061

@PureWeen PureWeen removed the request for review from mattleibow June 22, 2022 19:32
@PureWeen PureWeen merged commit de663a9 into net6.0 Jun 23, 2022
@PureWeen PureWeen deleted the fix_android_flyout branch June 23, 2022 01:44
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2023
@samhouts samhouts added the fixed-in-6.0.408 Look for this fix in 6.0.408! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-shell Shell Navigation, Routes, Tabs, Flyout fixed-in-6.0.408 Look for this fix in 6.0.408!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AppShell Flyout Content Missing
4 participants