Bug 91632 - msword has some strange "layout in table cell" behaviour
Summary: msword has some strange "layout in table cell" behaviour
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.0.0.alpha0+ Master
Hardware: Other All
: medium normal
Assignee: Justin L
URL:
Whiteboard: target:25.2.0
Keywords: filter:doc, filter:docx
Depends on:
Blocks: Matters-to-Caolan DOC-Tables layoutInCell
  Show dependency treegraph
 
Reported: 2015-05-26 08:38 UTC by Caolán McNamara
Modified: 2024-08-24 19:40 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
.doc version (29.00 KB, application/vnd.ms-word)
2015-05-26 08:38 UTC, Caolán McNamara
Details
.docx version (15.05 KB, application/vnd.openxmlformats-officedocument.wordprocessingml)
2015-05-26 08:38 UTC, Caolán McNamara
Details
Microsoft Word 2003- center.pdf: not vertically centered in cell (18.54 KB, application/pdf)
2020-04-21 15:04 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Caolán McNamara 2015-05-26 08:38:20 UTC
Created attachment 116040 [details]
.doc version

With this checked on in word and vertically center from margin applied the following attachments have elements that align to the *top* of the surrounding table which is a bit strange, but that's what happens in word
Comment 1 Caolán McNamara 2015-05-26 08:38:44 UTC
Created attachment 116041 [details]
.docx version
Comment 2 QA Administrators 2016-09-20 09:46:08 UTC Comment hidden (obsolete, spam)
Comment 3 QA Administrators 2019-12-03 14:39:07 UTC Comment hidden (obsolete, spam)
Comment 4 Justin L 2020-04-21 15:04:53 UTC
Created attachment 159791 [details]
Microsoft Word  2003- center.pdf: not vertically centered in cell

repro 7.0+
Comment 5 QA Administrators 2022-04-22 04:02:15 UTC Comment hidden (obsolete, spam)
Comment 6 Justin L 2024-06-19 14:14:52 UTC
repro 24.8
Comment 7 Justin L 2024-08-01 21:34:21 UTC
layoutInCell seems to take every form of page-vertical and treat it as "top". So both "page" and "margin" treat top/centred/bottom/inside/outside as if it were the top of the cell print area (aka below the cell margin).

Also true for DOCX.
Comment 8 Commit Notification 2024-08-09 06:48:31 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/31f87f369fdb40fc746d98443d75af2e9ce2452d

tdf#162211 tdf#160077 tdf#91632 layoutInCell: vert page->margin, *->top

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 9 Commit Notification 2024-08-09 22:21:20 UTC Comment hidden (obsolete)
Comment 10 Commit Notification 2024-08-10 14:27:59 UTC Comment hidden (obsolete)
Comment 11 Justin L 2024-08-10 14:29:37 UTC
comment 9's patch's unit test was a bit premature, so I reverted to fix the build. Just be patient...
Comment 12 Commit Notification 2024-08-17 20:31:18 UTC
Justin Luth committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/abb8272350419e480ae25b71bdc8ac631d1b7e00

tdf#91632 doc import layoutInCell: vert page->margin, *->top

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.