Bug 163918 - ODT: frames set to "no overlap" still overlap when arranged "from left"
Summary: ODT: frames set to "no overlap" still overlap when arranged "from left"
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:
Depends on:
Blocks: Anchor-and-Text-Wrap
  Show dependency treegraph
 
Reported: 2024-11-15 19:32 UTC by Justin L
Modified: 2024-12-02 09:03 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
non-overlapping frames.odt: made in LO 25.2 (17.23 KB, application/vnd.oasis.opendocument.text)
2024-11-15 19:32 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2024-11-15 19:32:23 UTC
Created attachment 197639 [details]
non-overlapping frames.odt: made in LO 25.2

Frames that both have "allow overlap" turned off should not overlap each other.

Steps to reproduce:
1.) Open non-overlapping frames.odt

Notice the frames are overlapping.

Now change frame 2 to align to the left of the paragraph (instead of "from left") and as you can see it moves so that it does not overlap.

Already seen in OOo 3.3.

That's not quite the whole story though. While editing, it is still possible to have the "align left" object overlap. 
Steps to reproduce
A.) create a few empty paragraphs to push frame 2 below frame 1.
B.) now backspace a few times, and the frames will alternate between overlapping and non-overlapping.
Comment 1 m_a_riosv 2024-11-16 02:02:01 UTC
Aren't wrap options involved in how it works?
Comment 2 Justin L 2024-11-16 13:25:38 UTC
Please note that this bug report is primarily about "Notice the frames are overlapping." They should never be overlapping under any circumstances.

(In reply to m_a_riosv from comment #1)
> Aren't wrap options involved in how it works?
Only when they are not overlapping. (i.e. is the non-overlapping object supposed to be beside another one or below it). But if they are allowed to overlap, then text wrapping has no impact whatsoever.

I can imagine that "left" and "from left by 0" could potentially mean different placements. So I can imagine that "left" is a relative term, so it SHOULD be affected by wrap options (i.e. that it moves to the right side of frame 1, like it currently does).

In contrast to that, I could see that "from left by 0" could be considered an absolute position, and that it always moves below frame 1, so that it is at the absolute left of the page margin.

20.298 style:horizontal-pos is relatively ambiguous about this:
from-left: the svg:x attribute associated with the frame element specifies the horizontal position of the frame from the left edge of the specified area.
left: horizontal alignment of a frame should be left aligned relative to the specified area.