-
Notifications
You must be signed in to change notification settings - Fork 63
Open
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for thembugSomething isn't workingSomething isn't working
Milestone
Description
The Apple documentation is somewhat ambiguous about how these should behave. https://stackoverflow.com/questions/35608638/accessing-cgrect-values-directly-vs-normalizing-them-in-swift-objective-c-rule and at least one GitHub code result suggest that standardizing a rectangle should move the origin if the size is negated (i.e. the rectangle should remain the same, vs. flip over the origin).
The current Rust implementation of CGRect::standardize only normalizes the size, leaving the origin unchanged.
Also, CGRect::is_empty returns !(self.size.width > 0.0 && self.size.height > 0.0), so will treat a negative-sized rectangle as empty.
Metadata
Metadata
Assignees
Labels
A-frameworkAffects the framework crates and the translator for themAffects the framework crates and the translator for thembugSomething isn't workingSomething isn't working