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

Merge pull request #13705 from calixteman/lineheight3

XFA - Fix text positions (bug 1718741)
This commit is contained in:
calixteman 2021-07-10 14:19:03 +02:00 committed by GitHub
commit d416b23898
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 220 additions and 103 deletions

View file

@ -41,7 +41,7 @@
font-style: inherit;
font-weight: inherit;
font-kerning: inherit;
letter-spacing: inherit;
letter-spacing: -0.01px;
text-align: inherit;
text-decoration: inherit;
vertical-align: inherit;
@ -118,13 +118,9 @@
pointer-events: none;
}
.xfaWrapper {
display: flex;
align-items: stretch;
}
.xfaWrapped {
flex: 1 1 auto;
width: 100%;
height: 100%;
}
.xfaTextfield,
@ -169,8 +165,8 @@
.xfaRich {
white-space: pre-wrap;
width: auto;
height: auto;
width: 100%;
height: 100%;
}
.xfaImage {
@ -188,12 +184,6 @@
align-items: stretch;
}
.xfaLr,
.xfaRl,
.xfaTb > div {
flex: 1 1 auto;
}
.xfaLr {
display: flex;
flex-direction: row;
@ -229,20 +219,12 @@
align-items: stretch;
}
.xfaTable > div {
flex: 1 1 auto;
}
.xfaTable .xfaRow {
display: flex;
flex-direction: row;
align-items: stretch;
}
.xfaTable .xfaRow > div {
flex: 1 1 auto;
}
.xfaTable .xfaRlRow {
display: flex;
flex-direction: row-reverse;