mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
XFA - Fix width of a container with lr-tb layout (bug 1718037)
This commit is contained in:
parent
03dff1c5f5
commit
b261446981
3 changed files with 10 additions and 1 deletions
|
@ -112,7 +112,6 @@ function addHTML(node, html, bbox) {
|
|||
extra.height = Math.max(extra.height, extra.prevHeight + h);
|
||||
} else {
|
||||
const [, , w, h] = bbox;
|
||||
extra.width = Math.max(extra.width, extra.currentWidth);
|
||||
extra.currentWidth = w;
|
||||
extra.prevHeight = extra.height;
|
||||
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.
|
||||
extra.attempt = 0;
|
||||
}
|
||||
extra.width = Math.max(extra.width, extra.currentWidth);
|
||||
break;
|
||||
case "rl-row":
|
||||
case "row": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue