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:
commit
ac7b86d341
4 changed files with 99 additions and 31 deletions
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue