Repository navigation
Fix InputTransparent for layouts - #14650
Merged
Merged
Conversation
Contributor
|
Thank you for your pull request. We are auto-formatting your source code to follow our code guidelines. |
Member
Author
|
/rebase |
github-actions
Bot
force-pushed
the
fix_input_transparent
branch
from
April 19, 2023 03:31
9fade5e to
7147442
Compare
Member
|
Seems the new test is failing on iOS |
rmarinho
reviewed
Apr 19, 2023
| { | ||
| if (handler.PlatformView is FrameworkElement fe) | ||
| fe.UpdateInputTransparent(handler, layout); | ||
| if (handler.PlatformView is LayoutPanel lp && handler is ILayoutHandler lh && layout is Maui.ILayout iLayout) |
Member
There was a problem hiding this comment.
why only in these cases? can we add a comment?
PureWeen
marked this pull request as ready for review
April 19, 2023 15:49
Redth
approved these changes
Apr 19, 2023
Redth
enabled auto-merge (squash)
April 19, 2023 17:02
Member
|
/backport to net7.0 |
Contributor
|
Started backporting to net7.0: https://github.com/dotnet/maui/actions/runs/4745965208 |
Member
|
/backport to release/7.0.2xx-sr5 |
Contributor
|
Started backporting to release/7.0.2xx-sr5: https://github.com/dotnet/maui/actions/runs/4746012479 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of Change
Windows
Fixing regressions caused by #12785
UpdateInputTransparentand this wasn't taken into account on [net7.0] Modify generics on replaced mappers insideControlsto cover more types. #12785. We needed to cast the mapper parameters to the previous layout types in order to call through to the correct overload. We should do another PR fixing this on main so that this logic is just insideUpdateInputTransparent. We do this inside the iOSUpdateInputTransparentso we should do the same onWindowsAndroid
#12799
UpdateContainerViewfrom all the mappers that needed theContainerViewrecalculated. This wasn't allowing us to tap intoMapContainerViewourselves and modifying the behavior insideControls. The problem with [net7.0] Process ContainerView through mapper and fix NeedsContainer logic #12799 is that it left a call toUpdateInputTransparentinside theMapContainerViewwhich made it so the overrides in controls weren't being fully obeyed. The core code was still running even thoughControlswas replacing the behavior.fixes #14522