Bug 149353 - With "to paragraph" anchoring, cannot position an object at the bottom of a paragraph that extends over two pages or columns
Summary: With "to paragraph" anchoring, cannot position an object at the bottom of a p...
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.5.0 target:7.4.0.0.beta2
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap Image-Dialog Frame-Dialog Shapes
  Show dependency treegraph
 
Reported: 2022-05-28 23:36 UTC by sdc.blanco
Modified: 2022-09-05 15:19 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
Minimal test file to demonstrate positioning in a paragraph across two pages (89.52 KB, application/vnd.oasis.opendocument.text)
2022-05-28 23:36 UTC, sdc.blanco
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sdc.blanco 2022-05-28 23:36:25 UTC
Created attachment 180446 [details]
Minimal test file to demonstrate positioning in a paragraph across two pages

Attachment has a paragraph that extends over two pages.

The first page has an image that is: (a) anchored "to paragraph" and (b) positioned with Vertical: Bottom to "Margin" (now "Entire paragraph area").

Actual: Positioned at bottom margin of first page.
Expected: Positioned at bottom of paragraph (on second page).

(similarly, an image anchored to the same paragraph, but now on the second page, necessarily with a "to character" anchor and using Vertical: Top to "Margin" will only position at top of page text area, not top of paragraph)
Comment 1 sdc.blanco 2022-05-28 23:40:03 UTC
Sending to NeedsUXEval -- mostly because this behavior violates the design of the Position dialog for objects. 

If this is considered NAB or WF, then perhaps a sentence is needed in a help page that says (something like):

"Positioning in paragraphs that extend over two pages is limited to the part of the paragraph in the page where the anchor is located."

(this would cover both the "to paragraph" and "to character" anchors)
Comment 2 Dieter 2022-05-29 04:41:57 UTC
(In reply to sdc.blanco from comment #1)

I confirm it with

Version: 7.3.4.1 (x64) / LibreOffice Community
Build ID: 13668373362b52f6e3ebcaaecb031bd59a3ac66b
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL

> "Positioning in paragraphs that extend over two pages is limited to the part
> of the paragraph in the page where the anchor is located."
Or: "Anchor and it's image or object needs to be on the same page" (or soemthing like that)
Comment 3 Rainer Bielefeld Retired 2022-05-29 16:59:22 UTC
Effect is already reproducible with OOo 3.2.0 (Portable on WIN).
Comment 4 Heiko Tietze 2022-05-30 09:45:25 UTC
I think the implementation is what users intuitively expect. So yes to WF and making it a documentation topic. Objection, Mike?
Comment 5 Mike Kaganski 2022-05-30 09:55:40 UTC
A *bit* related: tdf#89082.

But this one is indeed OK to WF; the current behavior should be unchanged - at least for now.

My proposal (just for the sake of making the choice harder ;-P): "position on paragraph's bottom margin (on first page, if paragraph spans several pages)", or the like.

(I think that wording in comment 1 and comment 2 are OK)
Comment 6 sdc.blanco 2022-06-09 11:56:17 UTC
Additional complications - also applies to columns (summary changed), 
and is only relevant when paragraph-specific positioning options are selected. 
Here is a proposal for the text. 

¨When a paragraph is used for positioning and the paragraph extends over more than one page or column, then positioning options that refer to a *paragraph area* or *paragraph text area* are applied only to the portion of the paragraph in the page or column where the anchor is located."
Comment 7 sdc.blanco 2022-06-14 05:43:31 UTC
https://gerrit.libreoffice.org/c/help/+/135169
Comment 8 Commit Notification 2022-06-16 10:38:52 UTC
Seth Chaiklin committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/a17fbdee73a7f567637c56a1b6354c0fef3b3a10

tdf#149353 positioning objects in multipage and multicolumn paragraphs
Comment 9 Commit Notification 2022-06-16 10:42:11 UTC
Seth Chaiklin committed a patch related to this issue.
It has been pushed to "libreoffice-7-4":

https://git.libreoffice.org/help/commit/1f35f6f69a3e250e24994af78dc64ecfb3573a26

tdf#149353 positioning objects in multipage and multicolumn paragraphs
Comment 10 Dieter 2022-08-07 19:30:41 UTC
I can see changes in https://help.libreoffice.org/7.4/en-US/text/swriter/guide/anchor_object.html?&DbPAR=WRITER&System=WIN

=> VERIFIED FIXED
Set, thank you for fixing this issue!