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

            Bug ID: 162304
           Summary: FILEOPEN ODT: IsFollowingTextFlow is inconsistent
                    regarding "top" and "from top" of "Page text area"
           Product: LibreOffice
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: implementationError
          Severity: minor
          Priority: low
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
            Blocks: 160077

Created attachment 195647
  --> https://bugs.documentfoundation.org/attachment.cgi?id=195647&action=edit
layoutInCell page top ODT.odt: image FollowTextFlow at top of page text area

ODF 1.3: "The style:flow-with-text attribute specifies whether a drawing shape
flows with the text of its layout environment or not. The layout environment of
a drawing shape is determined by the location of its anchor."

So what is supposed to happen when the shape has a relation orientation to the
page? I would assume that it should attempt to go that specified position on
the page, and if that is outside of the layout environment, it will end up at
the edge of the layout environment.

Or more concretely, if an image in a table cell is set to go to the top of the
page, it will end up at the top of the cell instead, since that is as close as
it can come to its desired position.

P.S. Microsoft is not much help to us here. Their implementation is completely
inconsistent, handling vertical and horizontal differently. AFAICS, for
vertical the offset is applied to the cell text area (the print area - or
"margin").

In our current implementation, "top" is connected to the cell's "print area"
and "from top" seems to refer to edge of the cell (but might be buggy/based on
invalidated print area).

To see what is happening in the example document, select the entire cell, and
then go to table properties. That will show you the border spacing for that
specific cell. In this case cell A1 has 2cm top and bottom padding and cell B1
has 2.25cm padding (which is what becomes the effective margin for the entire
row).

I would have expected the image to be at the edge of the cell, not stuck below
the cell padding.

[A follow-up attachment will show that "from top" offset by 0cm is at the cell
edge, so our implementation here is inconsistent.]


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=160077
[Bug 160077] FILEOPEN DOCX: image layoutInCell must vertical offset relative to
the paragraph, not the page (comment 5)
-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to