Skip to content

Removed vestigial UpdateContentLayout() method left over from Forms - #18856

Merged
PureWeen merged 1 commit into
mainfrom
cv-remove-duplicate-layout
Mar 22, 2024
Merged

Removed vestigial UpdateContentLayout() method left over from Forms#18856
PureWeen merged 1 commit into
mainfrom
cv-remove-duplicate-layout

Conversation

@hartez

@hartez hartez commented Nov 17, 2023

Copy link
Copy Markdown
Contributor

Description of Change

The Forms version of ItemContentView called the UpdateContentLayout method when laying out each RecyclerView item to ensure that all cross-platform layout updates were applied. When the CollectionView was ported to MAUI, that method didn't appropriately handle the changes to margins in the layout, so a call to LayoutVirtualView was added to deal with that. Both methods effectively do the same job, so UpdateContentLayout is now redundant.

This change removes UpdateContentLayout so we don't lay out (and in some cases re-measure) the content unnecessarily.

Issues Fixed

Does not fully address #18505, but it should help a bit.

@Eilon Eilon added the area-layout StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter label Nov 21, 2023
@hartez
hartez force-pushed the cv-remove-duplicate-layout branch from bdaf59b to 24f64be Compare November 28, 2023 22:28
@rmarinho rmarinho added the partner/android Issues for the Android SDK label Dec 5, 2023
@PureWeen

Copy link
Copy Markdown
Member

/rebase

@github-actions
github-actions Bot force-pushed the cv-remove-duplicate-layout branch from 24f64be to aa8f895 Compare December 20, 2023 15:50
@PureWeen
PureWeen marked this pull request as ready for review December 21, 2023 01:02
@PureWeen
PureWeen requested a review from a team as a code owner December 21, 2023 01:02
@samhouts samhouts added the stale Indicates a stale issue/pr and will be closed soon label Jan 8, 2024
@jpobst jpobst added platform/android and removed partner/android Issues for the Android SDK labels Jan 12, 2024
@mattleibow

Copy link
Copy Markdown
Member

/rebase

@github-actions
github-actions Bot force-pushed the cv-remove-duplicate-layout branch from aa8f895 to 63c9709 Compare January 20, 2024 19:50
@rmarinho
rmarinho requested a review from PureWeen February 6, 2024 18:33
@rmarinho

rmarinho commented Feb 6, 2024

Copy link
Copy Markdown
Member

/azp run MAUI-UITests-public

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@rmarinho rmarinho added this to the .NET 8 SR3 milestone Feb 6, 2024
@PureWeen

Copy link
Copy Markdown
Member

/rebase

@github-actions
github-actions Bot force-pushed the cv-remove-duplicate-layout branch from 63c9709 to df986d5 Compare February 11, 2024 00:09
@mattleibow

Copy link
Copy Markdown
Member

/rebase

The Forms version of ItemContentView called the UpdateContentLayout method
when laying out each RecyclerView item to ensure that all cross-platform
layout updates were applied. When the CollectionView was ported to MAUI,
that method didn't appropriately handle the changes to margins in the layout,
so a call to LayoutVirtualView was added to deal with that. Both methods
effectively do the same job, so UpdateContentLayout is now redundant.

This change removes UpdateContentLayout so we don't lay out (and in some cases
re-measure) the content unnecessarily.
@github-actions
github-actions Bot force-pushed the cv-remove-duplicate-layout branch from df986d5 to c4c0674 Compare February 14, 2024 22:42
@mattleibow

Copy link
Copy Markdown
Member

/azp run MAUI-UITests-public

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@PureWeen

Copy link
Copy Markdown
Member

Test failures unrelated

@PureWeen
PureWeen merged commit 6d12613 into main Mar 22, 2024
@PureWeen
PureWeen deleted the cv-remove-duplicate-layout branch March 22, 2024 18:40
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 fixed-in-8.0.20 fixed-in-9.0.0-preview.3.10457 platform/android stale Indicates a stale issue/pr and will be closed soon

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants