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

[macOS] Hang App scaling a View to zero #13005

Merged
merged 11 commits into from
May 21, 2021
Merged

[macOS] Hang App scaling a View to zero #13005

merged 11 commits into from
May 21, 2021

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Hang or crash macOS App scaling a View to zero.

Issues Resolved

API Changes

None

Platforms Affected

  • macOS

Behavioral/Visual Changes

None

Before/After Screenshots

Before

Hang in the first case and getting a crash in the second case setting the Scale to zero.

Ater

fix8981
macos-scale-issue

Testing Procedure

PR Checklist

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

@samhouts samhouts added p/iOS 🍎 good first issue i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often labels Dec 10, 2020
Copy link
Contributor

@mattleibow mattleibow left a comment

Choose a reason for hiding this comment

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

Scaling to negative values on both X and Y cause the last axis to actually snap to 0.

I think this is because we only update the fields when at least one of the axis are positive. However, when both are negative, the logic fails.

Also, since the variables in the scope have the same name, it might cause a bit of confusion.

scale

@jsuarezruiz
Copy link
Contributor Author

@mattleibow Thanks for the feedback!. I have made changes to cover all cases.
fix8981

@mattleibow
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jsuarezruiz jsuarezruiz merged commit ad71f11 into 5.0.0 May 21, 2021
@jsuarezruiz jsuarezruiz deleted the fix-8981 branch May 21, 2021 07:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue i/high Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often p/iOS 🍎 p/macOS t/bug 🐛
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] [macOS] Scale divided by zero
3 participants