-
Notifications
You must be signed in to change notification settings - Fork 10k
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
[Editor] A pasted FreeText editor was missing when printing/saving #15274
Conversation
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.
r=me, with the comment addressed; thank you!
window.PDFViewerApplication.pdfDocument.annotationStorage._storage | ||
.size |
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's already an official getter for this, so please don't access a "private" property like this (since that'll break if we convert AnnotationStorage
to actual private properties).
window.PDFViewerApplication.pdfDocument.annotationStorage._storage | |
.size | |
window.PDFViewerApplication.pdfDocument.annotationStorage.size |
When a FreeText editor is pasted then it hasn't an editorDiv yet when added to the layer, hence it's empty. So this patch just move the call to addToAnnotationStorage to ensure we've what we need.
96c712f
to
3c8d8f0
Compare
/botio integrationtest |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @calixteman received. Current queue size: 0 Live output at: http://54.241.84.105:8877/1188056854f00ae/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @calixteman received. Current queue size: 0 Live output at: http://54.193.163.58:8877/e649cef9a596faa/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/1188056854f00ae/output.txt Total script time: 4.99 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/e649cef9a596faa/output.txt Total script time: 7.76 mins
|
When a FreeText editor is pasted then it hasn't an editorDiv yet when added
to the layer, hence it's empty.
So this patch just move the call to addToAnnotationStorage to ensure we've
what we need.