1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Merge pull request #18080 from calixteman/bug1895909

[Editor] Fix the CSS properties of the canvas when it's used in a stampEditor (bug 1895909)
This commit is contained in:
Tim van der Meij 2024-05-14 15:33:53 +02:00 committed by GitHub
commit ac7b86d341
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 99 additions and 31 deletions

View file

@ -502,11 +502,13 @@
.annotationEditorLayer .stampEditor {
width: auto;
height: auto;
}
.annotationEditorLayer .stampEditor canvas {
width: 100%;
height: 100%;
canvas {
position: absolute;
width: 100%;
height: 100%;
margin: 0;
}
}
.annotationEditorLayer {

View file

@ -69,12 +69,30 @@
@media screen and (forced-colors: active) {
--hcm-highlight-filter: invert(100%);
}
}
.pdfViewer .canvasWrapper {
overflow: hidden;
width: 100%;
height: 100%;
.canvasWrapper {
overflow: hidden;
width: 100%;
height: 100%;
canvas {
margin: 0;
display: block;
&[hidden] {
display: none;
}
&[zooming] {
width: 100%;
height: 100%;
}
.structTree {
contain: strict;
}
}
}
}
.pdfViewer .page {
@ -153,24 +171,6 @@
}
/*#endif*/
.pdfViewer .page canvas {
margin: 0;
display: block;
}
.pdfViewer .page canvas .structTree {
contain: strict;
}
.pdfViewer .page canvas[hidden] {
display: none;
}
.pdfViewer .page canvas[zooming] {
width: 100%;
height: 100%;
}
.pdfViewer .page.loadingIcon::after {
position: absolute;
top: 0;