Bug 136086 - Selected image moves down to next page when pressing arrow up
Summary: Selected image moves down to next page when pressing arrow up
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 145592 (view as bug list)
Depends on:
Blocks: Anchor-and-Text-Wrap Writer-Images
  Show dependency treegraph
 
Reported: 2020-08-24 19:06 UTC by Telesto
Modified: 2023-12-10 16:34 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (95.14 KB, application/vnd.oasis.opendocument.text)
2020-08-24 19:06 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-08-24 19:06:04 UTC
Description:
Anchors interacting with each other

Steps to Reproduce:
1. Open the attached file
2. Select the image on the second page
3. Press arrow up
4. Image moves to third page
5. Press arrow up 8-10 times -> image back to page 2.
6. Press arrow down until positioned

7. File reload
8. Save as DOCX
9. File reload
10. Move the image up with arrow -> now it works

Actual Results:
Fuzzy, contrary logic to produce the intended result

Expected Results:
More behavior like RTF/DOCX


Reproducible: Always


User Profile Reset: No



Additional Info:
Found in
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 8700bace8c0714d853f5df6918ab9c8bb3d81f77
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

and in
3.3.0
Comment 1 Telesto 2020-08-24 19:06:21 UTC
Created attachment 164652 [details]
Example file
Comment 2 Telesto 2020-08-24 19:06:46 UTC
Delete the image on the third page and the problem goes away
Comment 3 Dieter 2021-03-19 19:50:08 UTC
Telesto, unfortunately nothing has happened with this bug report for more than half year. So I'd like to ask, if it is still valid. Could you please try to reproduce it with the latest version of LibreOffice?
=> NEEDINFO
Comment 4 QA Administrators 2021-09-17 03:52:19 UTC Comment hidden (obsolete)
Comment 5 Telesto 2021-09-17 06:26:59 UTC
Still present
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: d5e55d204b71710eb5eb5d2c683dd6698626df3c
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 6 QA Administrators 2021-09-18 03:28:29 UTC Comment hidden (obsolete)
Comment 7 Xisco Faulí 2022-05-02 14:02:14 UTC
Dear Telesto,
Could you please try to reproduce it with a master build from http://dev-builds.libreoffice.org/daily/master/ ?
You can install it alongside the standard version.
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the master build
Comment 8 QA Administrators 2022-10-30 03:48:46 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2022-11-30 03:50:52 UTC Comment hidden (obsolete)
Comment 10 Telesto 2022-11-30 08:17:06 UTC
Still around
Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: c1c8ce3b0f1037bca4d500af2f39363cd9d38db6
CPU threads: 8; OS: Mac OS X 12.3.1; UI render: Skia/Metal; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded
Comment 11 Dieter 2022-12-01 07:27:11 UTC
I confirm, that there is a problem, but it is different from what is described in original bug report. For example saving as docx and reloading doesn't sole the problem.

So I would focus this report to the first problem described in comment 0

Steps:
1. Open attachment 164652 [details]
2. Select image on second page and press arrow up

Actual result:
Image jumps to second page

Expected result:
Image moves up

Do you agree, Telesto?


Version: 7.4.3.2 (x64) / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 12 Mike Kaganski 2022-12-01 08:08:08 UTC
Please be more specific about what is the expectation here. The image has non-trivial anchoring/positioning settings: to character, with offset relative to whole paragraph, vertically offset by 13.18 cm. When you press the arrow up key, what specifically should be the user expectation?

a) anchor moves up, positioning does not change. This would not move the picture at all in this case, because the positioning is relative to paragraph; moving the to-character anchor one line up would still keep the anchor paragraph the same, so position would stay. Only multiple arrow ups would eventually move the anchor to the previous paragraph, with a big jump of position (because now it's relative to the new paragraph).
b) positioning changes, anchoring stays. This would often cause surprise, because if you keep the anchoring, it could not move to another page, because an object is always on the same page as its anchor.
c) both anchor and positioning change. Then how? Given the immense flexibility of the options, allowing you to create very powerful layout, how should we change them simultaneously when user does this press, in a sensible way? What happens now it the anchor moves near the current object position, and the position moves up - but now the object is part of another paragraph, the one below the previous anchor paragraph; it results in some complex re-arrangements, leading to the *whole paragraph* moving to the next page, and the object naturally follows (its not what the bug claims: not the image moves down, but the paragraph moves down).

Without some real work on specifications how all this should be arranged together, it's impossible to "fix" this (well, maybe the jump of the whole paragraph looks strange - needs investigation, but that's unrelated to the key press itself, just the final anchoring/positioning combination).
Comment 13 Dieter 2022-12-01 18:29:11 UTC
Help says: "You can move an anchor or, keeping other object constraints in mind, position an object relative to the anchor's reference point by dragging the object."[1]

I understand it in that way, that after moving up with arrow key or by dragging, anchor (to character) is still connected with the same character, while only position of object changes. But Anchor changes in current document (works as expected with image on page 1)


[1] https://help.libreoffice.org/7.4/en-GB/text/swriter/guide/anchor_object.html?&DbPAR=WRITER&System=WIN
Comment 14 Mike Kaganski 2022-12-01 18:49:57 UTC
(In reply to Dieter from comment #13)
> I understand it in that way, that after moving up with arrow key ...

First of all, you can't read a text that only mentions dragging, as if it discusses anything related to keyboard movement ;) No, the help does not discuss keyboard at all.

And also it explicitly mentions movement of the anchor; so I can't see how could that be read as if it guaranteed fixed anchor and changing position...
Comment 15 Dieter 2022-12-03 12:52:55 UTC
(In reply to Mike Kaganski from comment #14)
> (In reply to Dieter from comment #13)
> > I understand it in that way, that after moving up with arrow key ...
> 
> First of all, you can't read a text that only mentions dragging, as if it
> discusses anything related to keyboard movement ;) No, the help does not
> discuss keyboard at all.

You're right, but behaviour with draging is in this case the same.

> And also it explicitly mentions movement of the anchor; so I can't see how
> could that be read as if it guaranteed fixed anchor and changing position...
Yes, but it implicitly mentions movement of the object: "position an object relative to the anchor's reference point by dragging the object."

So my questions are:
Do you agree, that different result between moving image on page one and image on page two indicates a bug?
What is your expected result, if you select an image and press arrow key up?
Comment 16 Mike Kaganski 2022-12-03 12:59:40 UTC
(In reply to Dieter from comment #15)
> Do you agree, that different result between moving image on page one and
> image on page two indicates a bug?

No. A bug (likely) is movement of the paragraph when the anchor moves into it, but it is unrelated to the different outcome of "moving image on page one and image on page two". It is some kind of layout problem likely.

> What is your expected result, if you select an image and press arrow key up?

My expected result is fixes of bug 141161 and bug 141162. That would mean that user can control what moves. Before that, I don't see how could anything be changed in a sensible way. After that, we can e.g. specify that arrow movement affects anchor, and arrow with some modifier affects positioning.
Comment 17 Dieter 2023-12-10 16:34:30 UTC
*** Bug 145592 has been marked as a duplicate of this bug. ***