From 956da328c90940c90ad09fe192626c914c06788a Mon Sep 17 00:00:00 2001 From: Jakub Florkowski Date: Sun, 1 Sep 2024 16:35:12 +0200 Subject: [PATCH 1/3] [Android] invalidate shadows on parent's size change --- .../TestCases.HostApp/Issues/Issue24034.cs | 16 +++++++ .../TestCases.HostApp/Issues/Issue24034.xaml | 45 +++++++++++++++++++ .../Tests/Issues/Issue24034.cs | 20 +++++++++ src/Core/src/Platform/Android/WrapperView.cs | 12 ++++- 4 files changed, 92 insertions(+), 1 deletion(-) create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue24034.cs create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue24034.xaml create mode 100644 src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue24034.cs diff --git a/src/Controls/tests/TestCases.HostApp/Issues/Issue24034.cs b/src/Controls/tests/TestCases.HostApp/Issues/Issue24034.cs new file mode 100644 index 000000000000..06cde7612584 --- /dev/null +++ b/src/Controls/tests/TestCases.HostApp/Issues/Issue24034.cs @@ -0,0 +1,16 @@ +namespace Maui.Controls.Sample.Issues; + +[XamlCompilation(XamlCompilationOptions.Compile)] +[Issue(IssueTracker.Github, 24034, "Shadow is not updating on change of parent control", PlatformAffected.All)] +public partial class Issue24034 : ContentPage +{ + public Issue24034() + { + InitializeComponent(); + } + + private void Button_Clicked(object sender, EventArgs e) + { + GridView.IsVisible = !GridView.IsVisible; + } +} \ No newline at end of file diff --git a/src/Controls/tests/TestCases.HostApp/Issues/Issue24034.xaml b/src/Controls/tests/TestCases.HostApp/Issues/Issue24034.xaml new file mode 100644 index 000000000000..2f3c30d0971b --- /dev/null +++ b/src/Controls/tests/TestCases.HostApp/Issues/Issue24034.xaml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + +