Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed fractional border width on iOS
Summary: Incorrect render for borders that are not proportional to device pixel: borders get stretched and become significantly bigger than expected. Rdar: http://www.openradar.me/15959788 Incorrect render for borders that are not proportional to device pixel: borders get stretched and become significantly bigger than expected. Rdar: http://www.openradar.me/15959788 Reviewed By: shergin Differential Revision: D6317674 fbshipit-source-id: 6bc331447458583a02c0e56d0d011a31d31d70a8
- Loading branch information
15179f1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the
borderInsets
be rounded before thecornerInsets
are calculated based off them?Or was this intended?
react-native/React/Views/RCTBorderDrawing.m
Lines 205 to 210 in 15179f1
/cc @shergin
15179f1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aleclarson I am not sure, I assume it was intended. Do you have a counterexample?
15179f1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shergin Nah, it just looks suspicious. :P