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

Shape crash on 125% display size #22283

Merged
merged 1 commit into from
May 8, 2024
Merged

Shape crash on 125% display size #22283

merged 1 commit into from
May 8, 2024

Conversation

Foda
Copy link
Member

@Foda Foda commented May 7, 2024

Description of Change

Ensure that width+height scale check account for infinity, which is the result if we divide-by-zero.

Issues Fixed

Fixes #22003

@Foda Foda added platform/windows 🪟 area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with labels May 7, 2024
@Foda Foda requested a review from PureWeen May 7, 2024 22:01
@Foda Foda requested a review from a team as a code owner May 7, 2024 22:01
@Foda Foda requested a review from jfversluis May 7, 2024 22:01
@Foda
Copy link
Member Author

Foda commented May 7, 2024

Note: a bit unsure how to test this. It seems that the fractional values which result in divide-by-zero come from display scaling

@PureWeen PureWeen merged commit 1dfae6f into main May 8, 2024
49 checks passed
@PureWeen PureWeen deleted the foda/shapecrash branch May 8, 2024 16:34
@github-actions github-actions bot locked and limited conversation to collaborators Jun 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-drawing Shapes, Borders, Shadows, Graphics, BoxView, custom drawing fixed-in-8.0.40 fixed-in-9.0.0-preview.5.24307.10 partner/cat 😻 this is an issue that impacts one of our partners or a customer our advisory team is engaged with platform/windows 🪟
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Windows] App crashes when rectangle sized by a Grid has a size of 1 on 125% scale screen
5 participants