-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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 sure that Popup is rendered next to trigger for textAnnotation #12564
Conversation
Looks good, but please add a reference test for this to prevent future regressions. You can use this commit as a reference for how to do that. In short:
|
@timvandermeij sure! Thanks for looking into it. |
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.
Also, please see https://github.com/mozilla/pdf.js/wiki/Squashing-Commits
@Snuffleupagus squished to one commit! :) |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/0449f7e34f4ef58/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://3.101.106.178:8877/739c7c0473bff57/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/0449f7e34f4ef58/output.txt Total script time: 2.29 mins
Image differences available at: http://54.67.70.0:8877/0449f7e34f4ef58/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/739c7c0473bff57/output.txt Total script time: 2.82 mins
Image differences available at: http://3.101.106.178:8877/739c7c0473bff57/reftest-analyzer.html#web=eq.log |
/botio test |
looks I don't have that kind of power to run tests :) |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://3.101.106.178:8877/37c2ef7982f1f9f/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.67.70.0:8877/0ceddc49f7ed4e4/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/0ceddc49f7ed4e4/output.txt Total script time: 2.17 mins
Image differences available at: http://54.67.70.0:8877/0ceddc49f7ed4e4/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/37c2ef7982f1f9f/output.txt Total script time: 2.77 mins
Image differences available at: http://3.101.106.178:8877/37c2ef7982f1f9f/reftest-analyzer.html#web=eq.log |
Once more, please make sure that your patch passes all tests locally; more information at https://github.com/mozilla/pdf.js/wiki/Contributing#4-run-lint-and-testing There's no point in attempting to run tests here again, until you've confirmed that your patch passes all tests locally! |
This PR needs a rebase onto the current master. Unfortunately another patch also touched the same code, but on a positive note it already added the Moreover, I think we should also add the top change to https://github.com/mozilla/pdf.js/blob/master/src/display/annotation_layer.js#L303 so it also works properly for annotations without explicit popup annotations. |
@timvandermeij rebased on current master. If I get it right, https://github.com/mozilla/pdf.js/blob/master/src/display/annotation_layer.js#L303 this renders popup within annotation section element. To these are positioned correctly as they will be positioned relative to the annotation section element. |
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://3.101.106.178:8877/8e8af756f14461d/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/f2eca61bd0940e1/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/f2eca61bd0940e1/output.txt Total script time: 24.82 mins
Image differences available at: http://54.67.70.0:8877/f2eca61bd0940e1/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/8e8af756f14461d/output.txt Total script time: 28.64 mins
Image differences available at: http://3.101.106.178:8877/8e8af756f14461d/reftest-analyzer.html#web=eq.log |
Thank you for your contribution! (The reference test failures are not relevant to this PR.) /botio makeref |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @timvandermeij received. Current queue size: 2 Live output at: http://3.101.106.178:8877/4348f7f95c0fe58/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_makeref from @timvandermeij received. Current queue size: 0 Live output at: http://54.67.70.0:8877/65fe7f5db650a35/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.67.70.0:8877/65fe7f5db650a35/output.txt Total script time: 23.90 mins
|
From: Bot.io (Windows)SuccessFull output at http://3.101.106.178:8877/4348f7f95c0fe58/output.txt Total script time: 28.36 mins
|
Popup for textAnnotations can be rendered in a wrong position.
Example:
abc (2).pdf
After this fix all popup annotations are rendered in a correct place.