From fbed0bcb660f13b2037d88a3190fd7257e36dc97 Mon Sep 17 00:00:00 2001 From: tj-devel709 Date: Tue, 19 Mar 2024 14:51:34 -0500 Subject: [PATCH 01/13] Changes to improve keyboard scrolling with editors, contentInsets, and different keyboards --- .../TestCases.HostApp/Issues/Issue19214.xaml | 125 ++++++++ .../Issues/Issue19214.xaml.cs | 15 + .../Issues/Issue19214_2.xaml | 12 + .../Issues/Issue19214_2.xaml.cs | 72 +++++ .../Issues/Issue19214_3.xaml | 14 + .../Issues/Issue19214_3.xaml.cs | 72 +++++ .../TestCases.HostApp/Issues/Issue22715.xaml | 40 +++ .../Issues/Issue22715.xaml.cs | 32 ++ .../TestCases.HostApp/Issues/Issue24496.xaml | 102 +++++++ .../Issues/Issue24496.xaml.cs | 28 ++ .../Tests/Issues/Issue19214.cs | 118 ++++++++ .../Tests/Issues/Issue19214_2.cs | 77 +++++ .../Tests/Issues/Issue19214_3.cs | 77 +++++ .../Tests/Issues/Issue22715.cs | 27 ++ .../Tests/Issues/Issue24496.cs | 28 ++ .../Tests/KeyboardScrolling.cs | 2 +- .../snapshots/ios/PageShouldNotScroll.png | Bin 0 -> 61042 bytes .../tests/UITests/Tests/Issues/Issue19956.cs | 134 +++++++++ .../Platform/iOS/KeyboardAutoManagerScroll.cs | 279 +++++++++++++----- src/Core/src/Platform/iOS/MauiTextView.cs | 2 +- src/Core/src/Platform/iOS/MauiView.cs | 2 + 21 files changed, 1187 insertions(+), 71 deletions(-) create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue19214.xaml create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue19214.xaml.cs create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue19214_2.xaml create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue19214_2.xaml.cs create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue19214_3.xaml create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue19214_3.xaml.cs create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue22715.xaml create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue22715.xaml.cs create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue24496.xaml create mode 100644 src/Controls/tests/TestCases.HostApp/Issues/Issue24496.xaml.cs create mode 100644 src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue19214.cs create mode 100644 src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue19214_2.cs create mode 100644 src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue19214_3.cs create mode 100644 src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue22715.cs create mode 100644 src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue24496.cs create mode 100644 src/Controls/tests/TestCases.iOS.Tests/snapshots/ios/PageShouldNotScroll.png create mode 100644 src/Controls/tests/UITests/Tests/Issues/Issue19956.cs diff --git a/src/Controls/tests/TestCases.HostApp/Issues/Issue19214.xaml b/src/Controls/tests/TestCases.HostApp/Issues/Issue19214.xaml new file mode 100644 index 000000000000..1ab8c03e2a8e --- /dev/null +++ b/src/Controls/tests/TestCases.HostApp/Issues/Issue19214.xaml @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/Controls/tests/TestCases.HostApp/Issues/Issue19214.xaml.cs b/src/Controls/tests/TestCases.HostApp/Issues/Issue19214.xaml.cs new file mode 100644 index 000000000000..92c88ae3c284 --- /dev/null +++ b/src/Controls/tests/TestCases.HostApp/Issues/Issue19214.xaml.cs @@ -0,0 +1,15 @@ +using System; +using Microsoft.Maui.Controls; +using Microsoft.Maui.Controls.Xaml; + +namespace Maui.Controls.Sample.Issues; + +[XamlCompilation(XamlCompilationOptions.Compile)] +[Issue(IssueTracker.Github, 19214, "iOS Keyboard Scrolling ContentInset Tests", PlatformAffected.iOS)] +public partial class Issue19214 : ContentPage +{ + public Issue19214() + { + InitializeComponent(); + } +} diff --git a/src/Controls/tests/TestCases.HostApp/Issues/Issue19214_2.xaml b/src/Controls/tests/TestCases.HostApp/Issues/Issue19214_2.xaml new file mode 100644 index 000000000000..6971aa1effbc --- /dev/null +++ b/src/Controls/tests/TestCases.HostApp/Issues/Issue19214_2.xaml @@ -0,0 +1,12 @@ + + + + +