Skip to content

fix (pdf): Import pdfjs official styles - #10115

Merged
tiensonqin merged 2 commits into
masterfrom
fix/pdf-zoom
Aug 29, 2023
Merged

tiensonqin merged 2 commits into
masterfrom
fix/pdf-zoom

Conversation

@sprocketc

@sprocketc sprocketc commented Aug 28, 2023 •

Copy link
Copy Markdown
Collaborator

Resolves #10060

The issue here seems to be that the original updated styles of the module were not included when I upgraded the package. The annotation layer styles were updated (probably the z-index). I removed src/main/frontend/extensions/pdf/_viewer.css and included the difference on pdf.css.

The issue does not seem to occur with all PDFs for some reason. I managed to find one to reproduce this here. Make sure that the new css rules are built and loaded to the app when you switch to this branch to test this.

@xyhp915 xyhp915 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xyhp915
xyhp915 requested a review from andelf August 29, 2023 02:33
@sprocketc

sprocketc commented Aug 29, 2023 •

Copy link
Copy Markdown
Collaborator Author

@xyhp915 After taking a closer look at the file history of _viewer.css, I decided to remove it on this PR. The only actual difference seems to be the loading background. I added that to pdf.css.

@sprocketc
sprocketc requested a review from xyhp915 August 29, 2023 06:38
@tiensonqin
tiensonqin merged commit 9c97bad into master Aug 29, 2023
@tiensonqin
tiensonqin deleted the fix/pdf-zoom branch August 29, 2023 10:12
@Ningchiao

Copy link
Copy Markdown

Sorry. How can I fix the problem? I can not understand. Put the pdf.css in somwhere??

@sprocketc

Copy link
Copy Markdown
Collaborator Author

@Ningchiao The issue will be fixed in the next release. You will just have to upgrade to the latest version when it's out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PDF pane becomes blank after zooming or resizing

4 participants