-
Notifications
You must be signed in to change notification settings - Fork 7
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
Improve WIA Cropping #4223
Improve WIA Cropping #4223
Conversation
4c6c7ab
to
ce22946
Compare
142b28e
to
52a40ca
Compare
52a40ca
to
5f4e3eb
Compare
top: 2, | ||
top: 1, |
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.
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.
This is not necessary but thought I'd make it consistent.
let width: GridUnit = grid_layout.option_bounds_from_target_mark.left | ||
+ grid_layout.option_bounds_from_target_mark.right | ||
+ 1; | ||
+ grid_layout.option_bounds_from_target_mark.right; | ||
let height: GridUnit = grid_layout.option_bounds_from_target_mark.top | ||
+ grid_layout.option_bounds_from_target_mark.bottom | ||
+ 1; | ||
+ grid_layout.option_bounds_from_target_mark.bottom; |
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.
Here's the off-by-one issue. We're adding in 1 to the width and the height, in addition to the top + bottom
or left + right
specified by the gridLayouts
. I imagine the original thought here was to account for the size of the bubble itself? But we don't need to do that, the measurements are from the center of the bubble in all directions.
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.
Weird, I don't know why we would have done that! Nice catch
let width: GridUnit = grid_layout.option_bounds_from_target_mark.left | ||
+ grid_layout.option_bounds_from_target_mark.right | ||
+ 1; | ||
+ grid_layout.option_bounds_from_target_mark.right; | ||
let height: GridUnit = grid_layout.option_bounds_from_target_mark.top | ||
+ grid_layout.option_bounds_from_target_mark.bottom | ||
+ 1; | ||
+ grid_layout.option_bounds_from_target_mark.bottom; |
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.
Weird, I don't know why we would have done that! Nice catch
Overview
#4025
Demo Video or Screenshot
Testing Plan
Manual mostly, updated snapshots / fixtures.
Checklist