diff options
| author | jdierkes <joel.dierkes@ovgu.de> | 2023-04-26 11:22:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-26 11:22:35 +0200 |
| commit | 249d5fe515ddb864582ec711106461c0e03ffe77 (patch) | |
| tree | df675f07934f5de2b883b000de9acfbf0b6b593e /tests | |
| parent | ae4accc071aa811817dd27e906f7a20d00f23949 (diff) | |
Fix grid-cell misalignment bug (#963) (#978)
Having a table span multiple pages can cause an alignment bug in the
table itself. If the first region in a cell in a grid row is empty, all
other cells in this row will skip the first region. A misalignment bug
can occur, since the calculation of all region sizes happen before the
skip. The overall size allocated for the content of a cell with multiple
regions and content in the first region thus is too little.
Fixes #963
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ref/bugs/grid-2.png | bin | 10830 -> 12871 bytes | |||
| -rw-r--r-- | tests/typ/bugs/grid-2.typ | 4 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/ref/bugs/grid-2.png b/tests/ref/bugs/grid-2.png Binary files differindex ec2bd660..57160413 100644 --- a/tests/ref/bugs/grid-2.png +++ b/tests/ref/bugs/grid-2.png diff --git a/tests/typ/bugs/grid-2.typ b/tests/typ/bugs/grid-2.typ index bdcdf548..345ea6b1 100644 --- a/tests/typ/bugs/grid-2.typ +++ b/tests/typ/bugs/grid-2.typ @@ -9,7 +9,9 @@ rect(width: 100%, fill: red), rect(width: 100%, fill: blue), rect(width: 100%, height: 80%, fill: green), - [Hello], + [hello \ darkness #parbreak my \ old \ friend \ I], + rect(width: 100%, height: 20%, fill: blue), + polygon(fill: red, (0%, 0%), (100%, 0%), (100%, 20%)) ) --- |
