Bug 165492 - FILEOPEN DOCX: minimum/exact row heights need to add the bottom border padding
Summary: FILEOPEN DOCX: minimum/exact row heights need to add the bottom border padding
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Tables
  Show dependency treegraph
 
Reported: 2025-02-27 14:29 UTC by Justin L
Modified: 2025-03-12 11:53 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
164907_exact_with_bottom_spacing.docx: example document (15.12 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-02-27 14:29 UTC, Justin L
Details
164907_exact_with_bottom_spacing_Word2019.pdf: how it looks in MS Word (33.42 KB, application/pdf)
2025-03-04 18:49 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2025-02-27 14:29:19 UTC
Created attachment 199508 [details]
164907_exact_with_bottom_spacing.docx: example document

In MS Word (I was testing 2010), if a row height is set to exactly 1cm, the row will actually be 2cm tall if there is 1cm of "cell bottom margin" (which is called border padding in LO). The same is true for "atLeast" heights.

Unbelievable. But you can see it for yourself if you:
1.) open 164907_exact_with_bottom_spacing.docx

Notice in MS Word that the tables are not the same height. However, in LO the two tables look identical.

Both tables have the row heights set to be exactly 2cm.
The table in the left column was changed to also have 1.5cm bottom margins,
while the table in the right column doesn't have any top or bottom margins.

Also notice that if you add a top margin, it doesn't affect the table/row size.

Related to bug 164907 (where atLeast also adds the border width).

Confirmed this was the case in OOo 3.3, and still is true in 25.8 master.
Comment 1 Justin L 2025-03-04 18:49:40 UTC
Created attachment 199606 [details]
164907_exact_with_bottom_spacing_Word2019.pdf: how it looks in MS Word