https://bugs.documentfoundation.org/show_bug.cgi?id=172127

Justin L <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
      Regression By|[email protected]              |
         Resolution|---                         |DUPLICATE
             Blocks|172126                      |162618

--- Comment #12 from Justin L <[email protected]> ---
This is a duplicate of bug 166710.

You can 'fix' the document itself in LO by changing the anchoring table cell to
be top aligned instead of centered.  (Get the cursor in that table cell - then
Table Properties - Text Flow - Vertical Alignment = Top)


This is not a true regression. It just happened to look better since
6.0 commit 7a9fb40cb07de8c2ea33f92735be5008d30d6704
Author: Justin Luth on Sat Sep 2 19:35:09 2017 +0200
    tdf#37153 ConsiderWrapOnObjPos: also affect wrap-thru objs
    Reviewed-on: https://gerrit.libreoffice.org/41795

But definitely as noted in comment 8, it goes back to the 6.0 look with
commit 10b9d5200e382db5affaefc035ebe4d6b35a92fb
Author:     Justin Luth on Wed May 28 11:42:00 2025 +0200
    tdf#37153 tdf#165478 sw: add mso-compat flag doNotVertAlignCe
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185695


The identified 25.8 commit stopped (wrongly) forcing
table-cells-with-floating-objects to be top aligned, because it is not always
correct to do so. So it has exposed a long-standing LO layout limitation.

Because these are compatibilityMode15 (aka Word 2013+) files, the image is
supposed to stay inside of the cell - even though it is a floating object (aka
layoutInCell).

Because of this, for middle aligned cells,  Microsoft somehow grows top of the
paragraph in order to accommodate the growing size of the image. When the image
is large enough to fill the entire cell, then the anchoring paragraph is
effectively at the top of the cell, and so a -1.32cm position can escape the
top of the cell.

Calculating the correct position sounds very tricky to me. Much better to just
design a document that does what it says it will do (i.e. escape from the top
of the cell instead of the middle of the cell).

*** This bug has been marked as a duplicate of bug 166710 ***


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=162618
[Bug 162618] [META] MSO layoutInCell / LO IsFollowingTextFlow
https://bugs.documentfoundation.org/show_bug.cgi?id=172126
[Bug 172126] [Meta]:Files from MSO compatibility
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to