Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore content measurement requests with zero values #6969

Merged
merged 1 commit into from
May 9, 2022
Merged

Conversation

hartez
Copy link
Contributor

@hartez hartez commented May 9, 2022

Description of Change

For some reason, Windows will occasionally attempt to measure the ContentPanel at a size of zero,zero. This measurement call doesn't come from any of our layout passes, but it disrupts all of the subsequent desired size values.

This change just passes the zero values on the the base MeasureOverride and does not make another cross-platform measure pass when they occur. This at least fixes the issue for the moment; hopefully at some point in the future we can determine why the platform attempts to make these zero,zero measurements.

Issues Fixed

Fixes #6808

@Redth Redth merged commit 1ff4e63 into main May 9, 2022
@Redth Redth deleted the fix-6808 branch May 9, 2022 23:07
@github-actions github-actions bot locked and limited conversation to collaborators Dec 22, 2023
@samhouts samhouts added the fixed-in-6.0.312 Look for this fix in 6.0.312! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
fixed-in-6.0.312 Look for this fix in 6.0.312!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Windows] ContentView with ContentPresenter measured and arranged incorrectly
3 participants