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
Further fix of screen capture #6893
Conversation
case "NodeView": | ||
case "NoteView": | ||
case "AnnotationView": | ||
break; |
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 break
is ambiguous in this context.
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.
Why is it ambiguous?
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.
they are followed by a default : continue
statement, but break
is for switch
and continue
is for for
loop. sort of context switch..
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.
Looks fairly standard to me.
Purpose
Fix user reported issue #6834 where preview bubble goes beyond the edge of captured PNG image. This is mainly because the position of
NodeView
was replaced by the values ofCanvas.LeftProperty
andCanvas.TopProperty
. These values should be used to compute the final offset (i.e.TranslateTransform
) of image content prior to rendering it. The fix is to determine the minimum corner of the entire graph contents, and use it to offset the rendered image contents.Before this fix:
After this fix:
Declarations
Check these if you believe they are true
*.resx
filesReviewers
Hi @ke-yu, please help to take a look at this fix, hopefully I have explained it with enough clarity. Thanks!
FYIs
Thanks for reporting this issue, @vykrum!
Hi @riteshchandawar, if this is tested working on the
master
branch, I will then cross-merge it to release branch. Thanks!