Bug 126247 - The position of an image (anchor to as-char) can't be changed while being selected (alignment is disabled)
Summary: The position of an image (anchor to as-char) can't be changed while being sel...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.0.0.alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Anchor-and-Text-Wrap Writer-Images
  Show dependency treegraph
 
Reported: 2019-07-05 12:49 UTC by Telesto
Modified: 2023-05-17 15:03 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (97.88 KB, application/vnd.oasis.opendocument.text)
2019-07-05 12:49 UTC, Telesto
Details
Screencast (350.04 KB, video/mp4)
2019-07-06 12:37 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2019-07-05 12:49:11 UTC
Description:
The position of an image ( anchor to as-char ) can't be changed while being selected (alignment is disabled)

Steps to Reproduce:
1. Open the attached file
2. Click the image -> Not possible to align
3. Place the cursor right or left from the image and change the alignment -> Image position will change.. This slightly different compared to Word


Actual Results:
It's impossible to change alignment with the image selected. The issue will be more prominent with
https://gerrit.libreoffice.org/#/c/75091/


Expected Results:
It feels more natural to be able too. 


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 6.4.0.0.alpha0+ (x86)
Build ID: c2cb467a1e5194c56bb65706b7965fb2c9241b8f
CPU threads: 4; OS: Windows 6.3; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-06-29_00:11:35
Locale: nl-NL (nl_NL); UI-Language: en-US
Calc: threaded
Comment 1 Telesto 2019-07-05 12:49:27 UTC
Created attachment 152590 [details]
Example file
Comment 2 Regina Henschel 2019-07-06 11:44:01 UTC
I do not understand your request. What do you mean by "alignment"?

What I see is, that the wrap-options are disabled. That is correct, because wrap-options are meaning less for "as-character" anchored objects.
And it makes no sense to enable them and assume an automatic change away from 'as-anchor', because it would not be clear, to which kind of anchor it should switch. There are three (with 'to frame' four) options.
Comment 3 Telesto 2019-07-06 12:37:42 UTC
Created attachment 152599 [details]
Screencast

Find it hard to give a proper description. The left/center/right text alignment (CTRL+L/ CTRL+R/ CTRL+E) is disabled if an image is selected. See screencast

So it slightly clumsy to 'move' an image anchored as character. It doesn't behave exactly the same way compared to 'a real character'. It's easy if you know why it insn't working.. but not really user friendly 

I don't see the issue of enabling text alignment for the image anchored as character case..
Comment 4 Regina Henschel 2019-07-06 13:21:57 UTC
Now it is clear, you mean the paragraph alignment. I would not enable it, because text formatting is context depending. And the paragraph does not belong to the context of the image. It is no problem to deselect the image and change paragraph alignment then.

The problems with moving the image comes from "as-char" setting. I think using "as-char" is not suitable as default. I have added a comment to the commit.
Comment 5 Heiko Tietze 2019-07-17 03:54:36 UTC
Maybe we should provide an option how images are handled. Could be something integrated with bug 123169 or two selections.
Comment 6 Regina Henschel 2019-07-17 09:53:07 UTC
In theory you can select the style, which has to be used, in the open dialog, when you insert an image. So LibreOffice could provide suitable different styles. But that feature is broken for a long time.
Comment 7 Xisco Faulí 2019-08-19 09:53:24 UTC
(In reply to Regina Henschel from comment #6)
> In theory you can select the style, which has to be used, in the open
> dialog, when you insert an image. So LibreOffice could provide suitable
> different styles. But that feature is broken for a long time.

is there an existing report for it ?
Comment 8 Stanislaus J. Pinasthika 2019-11-26 15:36:54 UTC
Version: 6.4.0.0.alpha1+
Build ID: eeae2032476e8c8645ab438fbb379f3151c8e472
CPU threads: 8; OS: Linux 5.0; UI render: default; VCL: kf5; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-11-13_06:44:02

I can change the position. just type the random text, and then click the alignment, so the picture can change the alignment
Comment 9 Stanislaus J. Pinasthika 2019-11-26 15:37:25 UTC
may I change to resolved?
Comment 10 Dieter 2020-02-27 21:24:59 UTC
(In reply to Stanislaus J. Pinasthika from comment #9)
> may I change to resolved?

Telesto, are you still able to reproduce the bug with actual master? => NEEDINFO
Comment 11 QA Administrators 2020-08-26 03:59:23 UTC Comment hidden (obsolete)
Comment 12 Telesto 2020-08-26 06:30:59 UTC
Still around
Version: 7.0.0.2
Build ID: c01aa64b6c3d89ebe5fe69c28c7adb24eb85249c
CPU threads: 4; OS: Mac OS X 10.12.6; UI render: default; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded

Comment 8 simply ignoring the issue. Point is it works if you place cursor next to the image, not if you select the image and intend press align left/right/center/ button. 

Compare with Word. I don't see they objection of doing this the same way.
Comment 13 Dmitriy Siushkin 2021-07-27 10:31:18 UTC


repro in

Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c5ca46e75e28ba4245d8544ca53c71fea87d1bbd
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: en-US (ru_RU); UI: en-US
Calc: CL