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
Created attachment 170206 [details] gif screen recording
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
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.
Created attachment 196824 [details] new screen recording from 2024-10 So I guess this bug will survive forever then. Does nobody anchor images to behave like text? I do it all the time when writing reports. I know what to do to mitigate the effect of the bug, but one shouldn't have to. The workaround from the previous comment, i.e. switching to left aligned and then back, doesn't fully work with the newest version; depends on how much you resize the image. Line height behaves very very weirdly when resizing or dragging (which shouldn't have any effect when anchord as character, yet it does on the line height) the image. I've added another screen recording. (The rendering issue with the paragraph sign seen in the recording really exists, other things like miscolored pixels come from the recording software.)
Check the Navigator. If the image is in a frame, the frame should be resized, not the image.
It's something strange when the image is pushed to the top, to the header area. A big space is increasing below. I can not identify what kind of space is added. Tested with Version: 24.8.2.1 (X86_64) / LibreOffice Community Build ID: 0f794b6e29741098670a3b95d60478a65d05ef13 CPU threads: 16; OS: Linux 6.8; UI render: default; VCL: gtk3 Locale: ro-RO (ro_RO.UTF-8); UI: en-US Calc: threaded