XFA - Fix width of a container with lr-tb layout (bug 1718037)
This commit is contained in:
parent
03dff1c5f5
commit
b261446981
@ -112,7 +112,6 @@ function addHTML(node, html, bbox) {
|
|||||||
extra.height = Math.max(extra.height, extra.prevHeight + h);
|
extra.height = Math.max(extra.height, extra.prevHeight + h);
|
||||||
} else {
|
} else {
|
||||||
const [, , w, h] = bbox;
|
const [, , w, h] = bbox;
|
||||||
extra.width = Math.max(extra.width, extra.currentWidth);
|
|
||||||
extra.currentWidth = w;
|
extra.currentWidth = w;
|
||||||
extra.prevHeight = extra.height;
|
extra.prevHeight = extra.height;
|
||||||
extra.height += h;
|
extra.height += h;
|
||||||
@ -120,6 +119,7 @@ function addHTML(node, html, bbox) {
|
|||||||
// The element has been added on a new line so switch to line mode now.
|
// The element has been added on a new line so switch to line mode now.
|
||||||
extra.attempt = 0;
|
extra.attempt = 0;
|
||||||
}
|
}
|
||||||
|
extra.width = Math.max(extra.width, extra.currentWidth);
|
||||||
break;
|
break;
|
||||||
case "rl-row":
|
case "rl-row":
|
||||||
case "row": {
|
case "row": {
|
||||||
|
1
test/pdfs/xfa_bug1718037.pdf.link
Normal file
1
test/pdfs/xfa_bug1718037.pdf.link
Normal file
@ -0,0 +1 @@
|
|||||||
|
https://bugzilla.mozilla.org/attachment.cgi?id=9228741
|
@ -946,6 +946,14 @@
|
|||||||
"enableXfa": true,
|
"enableXfa": true,
|
||||||
"type": "eq"
|
"type": "eq"
|
||||||
},
|
},
|
||||||
|
{ "id": "xfa_bug1718037",
|
||||||
|
"file": "pdfs/xfa_bug1718037.pdf",
|
||||||
|
"md5": "a0b53d50e9faed9d57950a5159d5da12",
|
||||||
|
"link": true,
|
||||||
|
"rounds": 1,
|
||||||
|
"enableXfa": true,
|
||||||
|
"type": "eq"
|
||||||
|
},
|
||||||
{ "id": "xfa_bug1717681",
|
{ "id": "xfa_bug1717681",
|
||||||
"file": "pdfs/xfa_bug1717681.pdf",
|
"file": "pdfs/xfa_bug1717681.pdf",
|
||||||
"md5": "435b1eae7e017b1a932fe204d1ba8be5",
|
"md5": "435b1eae7e017b1a932fe204d1ba8be5",
|
||||||
|
Loading…
Reference in New Issue
Block a user