Bug 161326 - Frames Jump if Page Style is Changed
Summary: Frames Jump if Page Style is Changed
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.2.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-29 17:55 UTC by Jens-D Doll
Modified: 2024-05-30 06:43 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens-D Doll 2024-05-29 17:55:21 UTC
I wrote a 20 pages document with several frames on certain pages, which where intended to mark specific parts of the text. They had an anchor to the specific page which they where located in. 

Each time I changes the page style or a new page emerged, the frames moved to a different page. They also moved when I switched on the footer.

This is nasty behaviour.
Comment 1 Mike Kaganski 2024-05-29 18:25:31 UTC
This is not a bug.

(In reply to Jens-D Doll from comment #0)
> I wrote a 20 pages document with several frames on certain pages, which
> where intended to mark specific parts of the text. They had an anchor to the
> specific page which they where located in.

Anchoring to page is exactly the source of the problem, because you anchor not to the content (paragraphs or characters) that the objects relate to, but to something completely disconnected from the content.

See FAQ [1]. See bug 140702.

[1] https://wiki.documentfoundation.org/Faq/Writer/AnchoringAndPositioning
Comment 2 Jens-D Doll 2024-05-29 18:30:40 UTC
The Frames also fade away to the background and become invisible.
Comment 3 Jens-D Doll 2024-05-29 18:32:16 UTC
If I anchor to the char or to the paragraph, the frames are not resizable! They stay the same size they have been created with.
Comment 4 Mike Kaganski 2024-05-29 21:15:50 UTC
Please ask "how do I use the program" questions on https://ask.libreoffice.org/. Thanks.
Comment 5 Jens-D Doll 2024-05-30 06:28:49 UTC
a)
If a frame is anchored to a page, it should stay on that page.

b)
A frame should always be resizable by mouse actions.
Comment 6 Mike Kaganski 2024-05-30 06:36:45 UTC
(In reply to Jens-D Doll from comment #5)
> a)
> If a frame is anchored to a page, it should stay on that page.

It exactly stays on *that* page. Just you don't understand what "that" page means, in Writer which is text flow based. The "anchor to page" means "anchor to Nth page in the document", where N is the current page's order. Then, no matter where the *text* has moved, the object that you anchored to 5th page will stay forever on 5th page. This is what is *meant* by "anchor to page", not what you imagine, so it's a matter of learning, not a bug.

> 
> b)
> A frame should always be resizable by mouse actions.

This is off-topic in this issue, which is about (not a bug) fact that you misuse anchoring to page (which is what many users do incorrectly, because that anchoring mode is an advanced one - and which is why we even removed that mode from the prominent places in the UI). *If* you have reproducible steps how to create a situation when some frames aren't resizable, please *create a new bug* for that.

Closing NOTABUG again. Please do not reopen - this will not change the facts stated here. Thank you.
Comment 7 Mike Kaganski 2024-05-30 06:43:13 UTC
FTR: the behavior is documented in the following ODF standard sections:

19.759 text:anchor-type (property)
https://docs.oasis-open.org/office/OpenDocument/v1.3/OpenDocument-v1.3-part3-schema.html#attribute-text_anchor-type

20.418 text:anchor-type (attribute)
https://docs.oasis-open.org/office/OpenDocument/v1.3/OpenDocument-v1.3-part3-schema.html#property-text_anchor-type