[iOS] Fixes right border stretching when the left side has a corner while the right side does not#50463
[iOS] Fixes right border stretching when the left side has a corner while the right side does not#50463zhongwuzw wants to merge 2 commits into
Conversation
…hile the right side does not
|
@joevilches Hi, can you help me to review this? Thanks :) |
|
@zhongwuzw Hey thanks for the ping! I chatted with @jorge-cab who is more of an expert at borders than I am, and he thinks there might be other cases that cause this and would want to look into it a bit further and try to find a different repro. Ultimately he feels we can solve this in a more general sense. I'll contact him and let him know about this PR! |
|
@zhongwuzw I've run into this issue before and I don't think this solution deals with every case where the issue happens, its not only with decimals on borderWidth but also with decimals on borderRadius corners and can happen on any side of a View With your changes we still run into this with topleft and topright corners for example I'd say we need a better understanding of why this happens so we can confidently accept a fix for this, because otherwise we might end up just covering up the issue with hacky fixes without addressing the root problem |
|
@jorge-cab Thanks for your review. The bottom border stretching can also be fixed by adding 1 point. Actually, I debugged the drawing logic and did not find any issues, it seems the drawing logic is right. :) |
|
@zhongwuzw I think we need more thorough testing for this, since I can still find ways to trigger the bug. I think to accept a fix we need:
I'm not a fan of adding arbitrary pixels without a deeper understanding of the issue |
|
This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
This PR is stale because it has been open for 180 days with no activity. It will be closed in 7 days unless you comment on it or remove the "Stale" label. |
|
This PR is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
This PR was closed because it has been stalled for 7 days with no activity. |


Summary:
Fixes #46801. If the left side has a corner while the right side does not, it seems that iOS stretches the right border. Therefore, we can add 1 point to create a gap between the stretchable region and the border.
Changelog:
[IOS] [FIXED] - Fixes right border stretching when the left side has a corner while the right side does not
Test Plan:
Repro please see #46801