-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[iOS] Fix gestures in Label Spans #15544
Changes from all commits
5d9eff5
e94d90e
166ddcc
c7cfdfc
8a10994
8d6e929
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,14 +105,12 @@ public Region Inflate(double left, double top, double right, double bottom) | |
{ | ||
var region = Regions[i]; | ||
|
||
if (i == 0) // this is the first line | ||
region.Top -= top; | ||
region.Top -= top; | ||
|
||
region.Left -= left; | ||
region.Width += right + left; | ||
|
||
if (i == Regions.Count - 1) // This is the last line | ||
region.Height += bottom + top; | ||
region.Height += bottom + top; | ||
|
||
rectangles[i] = region; | ||
Comment on lines
105
to
115
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Made these changes since moving the region up but not making it bigger only really makes sense if we can guarantee that the next line will be right below the top line. This doesn't work in cases where the top line is at the end of the line and goes a little onto the next line for example. |
||
} | ||
|
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.
Could this possibly backfire if the Frame has infinite constraints? Feel free to resolve this comment if that could never happen :)
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.
Not sure this is possible as this is the iOS frame, so will always have some number value - probably 0 if there is an issue.