Bug 166911 - Reducing the width of the caption frame, increases the height of the caption frame
Summary: Reducing the width of the caption frame, increases the height of the caption ...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-08 12:49 UTC by Telesto
Modified: 2025-12-29 14:16 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample (51.53 KB, application/vnd.oasis.opendocument.text)
2025-06-08 13:04 UTC, Telesto
Details
Screencast (1.33 MB, image/gif)
2025-06-08 18:39 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2025-06-08 12:49:14 UTC
Description:
Reducing the width of the caption frame, increases the height of the caption frame

Steps to Reproduce:
1. Open the attached file
2. Select the image
3. Insert -> Caption
4. Add a longer caption: 'Very long image caption'
5. Think, let's make the caption to be distributed more nicely, by shrink the frame. Height of the frame increases

[Variant]
6. CTRL+Z (to undo Step 5)
7. Think, let's prevent multirow caption line by increasing the frame size. This by dragging the right frame border to the right (Image increases too, well that's not what I intended)
6. Decrease the frame back manually (so not using CTRL+Z). Frame becomes skewed (again)

Actual Results:
Frame becomes skewed

Expected Results:
Proper frame dimensions


Reproducible: Always


User Profile Reset: No

Additional Info:
Found in
Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 17e8dbead42e2d4b55815b1b7b2846b03d62a15d
CPU threads: 4; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL threaded

and in
OpenOffice 2.2.1
Comment 1 Telesto 2025-06-08 13:04:11 UTC
Created attachment 201138 [details]
Sample
Comment 2 Telesto 2025-06-08 13:22:46 UTC
@Eyal
Bit of a side-quest. The reported problem here can be solved as such, I think. However you could see this from in different angle. Which would lead to (partly) different solution.

Current situation in case of ODT
A) Shrink the caption frame decreases the image size (proportionally)
B) Increasing the caption frame increases the image size (proportionally)

Current situation in case of DOCX (generated from ODT)
A) Shrink the caption frame, shrinks the frame, not the image 
B) Increasing the caption frame, increases the frame, unaffecting the image

Shrink the caption frame shrinking the image feels 'natural'. Increasing the image frame, affecting the image might look 'logical' initially (symmetric behaviour). However it might be 'problematic'. Some might increase the caption frame, to accommodate the title to single line (can't be done frame caption dialog). At least I would tend to prevent multi-line captions. Although this  would 'require' to center the image within the frame (not the case B of the DOCX example)

Any thoughts on the matter? I admit, I didn't check competitors..

Off-topic: in relation to bug 166835: this also one of the examples a DOCX save looks good on screen, but the interactive part being broken; at least in Writer, didn't check Word.
Comment 3 Eyal Rozenberg 2025-06-08 18:19:40 UTC
> 5. Think, let's make the caption to be distributed more nicely, by shrink
> the frame. Height of the frame increases

Is the step here "shrink the frame horizontally"? Please be more explicit and less "philosophical" with reproduction steps.


> 6. Decrease the frame back manually (so not using CTRL+Z).

How do I "decrease" a frame?

>  Frame becomes skewed (again)

> 
> Actual Results:
> Frame becomes skewed

What do you mean by frame "skew"?
Comment 4 Telesto 2025-06-08 18:39:48 UTC
Created attachment 201145 [details]
Screencast

The description in step 5 is faulty
Step 5: Drag the right frame border to the left; inwards; Image shrinks
Comment 5 Buovjaga 2025-12-29 14:16:44 UTC
Shouldn't the summary be "Reducing the width of the caption frame should decrease its height"? Currently the height stays the same. But fulfilling your request would drop the possibility to resize like this. The way to do what you a requesting here is to hold down Shift and resize by dragging the bottom right handle.