-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
{ | ||
public partial class SandboxShell : Shell | ||
{ | ||
public SandboxShell() |
There was a problem hiding this comment.
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
...ontrols/src/Core/Compatibility/Handlers/Shell/Android/ShellFlyoutTemplatedContentRenderer.cs
Outdated
Show resolved
Hide resolved
src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellFlyoutRenderer.cs
Show resolved
Hide resolved
src/Controls/tests/DeviceTests/Elements/Shell/ShellTests.Android.cs
Outdated
Show resolved
Hide resolved
…id.cs Co-authored-by: Rachel Kang <rachelkang@microsoft.com>
@@ -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) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this 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
Description of Change
Issues Fixed
Fixes #6061