-
Notifications
You must be signed in to change notification settings - Fork 228
Make DnD consumer utilize internal state of Rectangle with APIs of and clone #3005
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
Make DnD consumer utilize internal state of Rectangle with APIs of and clone #3005
Conversation
fb64c75 to
c807d08
Compare
c807d08 to
b6f307f
Compare
7b330f7 to
793ce5d
Compare
793ce5d to
d98eb71
Compare
|
This pull request changes some projects for the first time in this development cycle. Git patchFurther information are available in Common Build Issues - Missing version increments. |
05f4eef to
b9efa80
Compare
This commit enforces the usage of Rectangle.clone and Rectangle.of while copying a rectangle from an existing rectangle and creating a rectangle from a Point making sure the internal state of the source resources are copied to the new resource. contributes to eclipse-platform/eclipse.platform.swt#62 and eclipse-platform/eclipse.platform.swt#128
b9efa80 to
3d9201e
Compare
fedejeanne
left a comment
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.
Tested it, looks good. Thank you @amartya4256 !
Depends on: eclipse-platform/eclipse.platform.swt#2186
This PR enforces the usage of Rectangle.copyWith and Rectangle.of
while copying a rectangle from an existing rectangle and creating a
rectangle from a Point making sure the internal state of the source
resources are copied to the new resource.
Configuration for reproducing:
Right (Primary) - 150%
Left - 100%
Steps to reproduce:
This happens because when a rectangle is copied into a new object using the default constructor, it loses its monitor information. However, the cursor location always has the right monitor zoom in the DnDManager and the rectangle created there should use that monitor reference while creating a rectangle from the cursor location and this rectangle should further only be copied using clone method to copy the right internal state of the rectangle so that we still have the monitor information - leading to right scaling.
contributes to eclipse-platform/eclipse.platform.swt#62 and eclipse-platform/eclipse.platform.swt#128