Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Fix layout cycle in ViewToRendererConverter #12365

Merged
merged 1 commit into from
Oct 6, 2020

Conversation

hartez
Copy link
Contributor

@hartez hartez commented Oct 5, 2020

Description of Change

ViewToRendererConverter was triggering a cross-platform layout pass from its MeasureOverride ... override, which resulted in a layout cycle. This change removes that layout pass, which appears to now be unnecessary.

The original layout call was added here:
https://github.com/xamarin/Xamarin.Forms/pull/2586/files#diff-70db430b24c262668bdb1ee9c4ad76ccR96

The call was added to address TitleView layout issues which I suspect may have been a symptom of deferring layout changes on the UI thread; or they may have been a symptom of some other bug entirely. Either way, after removing this line the TitleView layout still appears to be correct.

Issues Resolved

  • fixes failing test 57910 on UWP

API Changes

None

Platforms Affected

  • UWP

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

Testing Procedure

Automated test 57910

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@PureWeen PureWeen merged commit 5e5246f into 5.0.0 Oct 6, 2020
@PureWeen PureWeen deleted the fix-viewtorendererconverter-layoutcycle branch October 6, 2020 05:15
@samhouts samhouts added this to the 5.0.0 milestone Oct 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants