-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Allow for negative top/left offsets in composite overlays, updated #2391
Conversation
A top or left offset value of -1 will no longer mean that the value is not set, but will now be an actual offset of -1 INT_MIN for left & top will mean that the values are not set Co-authored-by: Christian Flintrup <chr@gigahost.dk>
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.
Thank you very much for updating this PR Manan, I've left a couple of questions inline.
rely on Javascript provided hasOffset property to determine if offset is to be applied, add removed tests, fixed comments
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.
Thank you for the updates Manan, this is ready to merge. Given it contains a slightly breaking change it's probably best to wait and include this in v0.27.0, so please bear with me whilst I get v0.26.2 out of the door first.
Will this also allow top/left that would move the image partially outside on the right or bottom? |
Landed as 0267614 - thanks all, this will be in v0.27.0 |
Composite overlays can be negatively offset, as requested in #1160.
Potentially breaking changes:
Co-authored-by: Christian Flintrup chr@gigahost.dk
This PR extends the work done in #2071