Skip to content

Fix InputTransparent for layouts - #14650

Merged
Redth merged 7 commits into
mainfrom
fix_input_transparent
Apr 19, 2023
Merged

Redth merged 7 commits into
mainfrom
fix_input_transparent

Conversation

@PureWeen

@PureWeen PureWeen commented Apr 19, 2023 •

Copy link
Copy Markdown
Member

Description of Change

Windows

Fixing regressions caused by #12785

  • Windows has two different overloads for UpdateInputTransparent and this wasn't taken into account on [net7.0] Modify generics on replaced mappers inside Controls to 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 inside UpdateInputTransparent. We do this inside the iOS UpdateInputTransparent so we should do the same on Windows

Android

#12799

fixes #14522

@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your pull request. We are auto-formatting your source code to follow our code guidelines.

@PureWeen

Copy link
Copy Markdown
Member Author

/rebase

@github-actions
github-actions Bot force-pushed the fix_input_transparent branch from 9fade5e to 7147442 Compare April 19, 2023 03:31
@rmarinho

Copy link
Copy Markdown
Member

Seems the new test is failing on iOS

{
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)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why only in these cases? can we add a comment?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Updated the code

@jsuarezruiz jsuarezruiz added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Apr 19, 2023
@PureWeen
PureWeen marked this pull request as ready for review April 19, 2023 15:49
@Redth
Redth enabled auto-merge (squash) April 19, 2023 17:02
@Redth Redth added backport/suggested The PR author or issue review has suggested that the change should be backported. backport/approved After some discussion or review, this PR or change was approved to be backported. labels Apr 19, 2023
@Redth

Redth commented Apr 19, 2023

Copy link
Copy Markdown
Member

/backport to net7.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to net7.0: https://github.com/dotnet/maui/actions/runs/4745965208

@Redth

Redth commented Apr 19, 2023

Copy link
Copy Markdown
Member

/backport to release/7.0.2xx-sr5

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/7.0.2xx-sr5: https://github.com/dotnet/maui/actions/runs/4746012479

@Redth
Redth merged commit ee6677a into main Apr 19, 2023
@Redth
Redth deleted the fix_input_transparent branch April 19, 2023 17:21
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 11, 2023
@samhouts samhouts added the fixed-in-8.0.0-preview.4.8333 Look for this fix in 8.0.0-preview.4.8333! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter backport/approved After some discussion or review, this PR or change was approved to be backported. backport/suggested The PR author or issue review has suggested that the change should be backported. fixed-in-8.0.0-preview.4.8333 Look for this fix in 8.0.0-preview.4.8333!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[regression/7.0.81] 7.0.81 Service Release 4 breaks CascadeInputTransparency

5 participants