Bug 155406 - Frame with wrap "through", containing a frame with caption and image, and anchored inside a table cell can not be centred vertically
Summary: Frame with wrap "through", containing a frame with caption and image, and anc...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.3 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Frame
  Show dependency treegraph
 
Reported: 2023-05-19 12:13 UTC by garavo
Modified: 2023-07-06 12:33 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description garavo 2023-05-19 12:13:15 UTC
Steps: 
Insert a Table 2x2
Centre all cells vertically
Insert an image into a table cell
Set the height of the row bigger than the height of the image
Set image's warp to through
Align image middle to anchor
Add caption to image

Expected result:
A vertically centred frame containing an image and a caption; the frame is anchored to the cell.

Actual Result:
The created frame ignores the vertical alignment of the cell it is anchored to, i.e. aligns itself to the top of the table cell. This behaviour only shows after adding a caption which wraps the image and the caption in a frame.
Comment 1 Jaske Sk 2023-05-19 15:49:22 UTC Comment hidden (spam)
Comment 2 Buovjaga 2023-07-06 12:33:51 UTC
The behaviour changed last with 023621fea5dff2713abe42312b04edc9531426d4

However, that commit is about reverting attempted improvements. So the good behaviour was temporary and the actual issue is already seen in 3.5.0.

The good behaviour appeared with commit 93ab0ff24cb71c36c9e7958046e96d7472b5af90
    Author: Caolán McNamara <caolanm@redhat.com>
    Date:   Thu Sep 10 15:46:57 2015 +0100
    
        Related: tdf#93676 default to as-char inside captions