Bug 140793 - FORMATTING - When an image is anchored as character and centered or right aligned and you resize it to be smaller the text doesn't follow.
Summary: FORMATTING - When an image is anchored as character and centered or right ali...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paragraph
  Show dependency treegraph
 
Reported: 2021-03-04 10:30 UTC by Andreas
Modified: 2023-05-13 11:12 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
gif screen recording (549.85 KB, image/gif)
2021-03-04 10:32 UTC, Andreas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas 2021-03-04 10:30:34 UTC
Description:
When an image is set to be anchored AS a character (not AT character) and it is centered or right aligned and is the only thing in the paragraph and you resize it to a smaller size, either by draging on the resize-squares or entering a value, the following text in the next paragraph doesnt shift up to the new lower border of the image. Instead it stays put where it was, and to correct it you have to set the image to be left and then set it back to centered or right aligned.
Everything behaves correctly if you have any text along the image in the same paragraph; even a line break before or after the image helps.
Refreshing the formatting via the extras pulldown menu doesn't work.

Steps to Reproduce:
1. Open Writer.
2. Paste any image (and resize it to be smaller than the page width).
3. Set image to be anchored AS character.
4. Set paragraph with the image centered.
5. Make sure there is only the image in this paragraph; no spaces, linebreaks, nothing.
6. Begin new paragraph below image.
7. Write any text in this new paragraph.
8. Resize the image to a smaller size.

Actual Results:
The text stays where it was before when the image was bigger; it doesn't follow the new image size.

Expected Results:
The text shifts up where it belongs to now; right below the image.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Version: 7.1.0.3 (x64) / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 16; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-AT (de_AT); UI: de-DE
Calc: CL
Comment 1 Andreas 2021-03-04 10:32:11 UTC
Created attachment 170206 [details]
gif screen recording
Comment 2 Raji 2021-03-04 14:13:26 UTC
Hello Andreas,

Thank you for reporting the bug. I can confirm that the bug is present.

Version: 7.1.0.3 (x64) / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 8; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 3 wpeaton4 2022-05-26 17:15:35 UTC
I can confirm this bug. It has been present for years

A workaround for this problem is to change the paragraph to left aligned, then back to center (or right) aligned. Writer seems to immediately recalculate the layout correctly when the paragraph is switch to left aligned.