Bug 142529 - Minimal row height not working for tables in Impress
Summary: Minimal row height not working for tables in Impress
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
7.1.3.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: ImpressDraw-Toolbars ImpressDraw-Tables
  Show dependency treegraph
 
Reported: 2021-05-27 20:07 UTC by Rafael Lima
Modified: 2025-11-26 05:41 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample File (12.91 KB, application/vnd.oasis.opendocument.presentation)
2021-05-27 20:07 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Lima 2021-05-27 20:07:50 UTC
Created attachment 172395 [details]
Sample File

In Impress, the Optimize > Minimal Row Height does not work even for very simple tables. Instead of adjusting row height based on table contents, I am getting no practical result from this functionality.

Steps to reproduce (see attached file)
1) Insert a 4 x 2 table into the slide
2) Fill it in with contents
3) Center contents and align them vertically at the middle
4) Select the whole table
5) Right click: Size > Minimal Row Height
6) Note that nothing will happen

This should compress the table based on the text that it contains, but nothing happens.

It should be noted that the "Optimal Row Height" also behaves weirdly. Consider the second slide of the attached file. If you apply "Optimal Row Height" to it, it will increase the height of all rows.

System Information
Version: 7.1.3.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 16; OS: Linux 5.11; UI render: default; VCL: kf5
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.1.3-0ubuntu0.21.04.1
Calc: threaded
Comment 1 Rafael Lima 2021-05-27 20:12:50 UTC
This commit may be related to this issue:

https://gerrit.libreoffice.org/c/core/+/105422
Comment 2 raal 2021-05-29 16:16:16 UTC
Confirm with Version: 7.2.0.0.alpha1+ / LibreOffice Community
Build ID: 42d2b2d55a27f11153ea1713737d93540a19211d
CPU threads: 4; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

The command shrink only cells without text.
Comment 3 Rafael Lima 2022-07-01 00:07:07 UTC
Still repro in

Version: 7.5.0.0.alpha0+ / LibreOffice Community
Build ID: 61f5c991a97de8990badfed6ef840941b5aa8c7f
CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL
Comment 4 QA Administrators 2025-03-06 03:15:32 UTC Comment hidden (obsolete)
Comment 5 Eyal Rozenberg 2025-03-06 14:38:14 UTC
(In reply to Rafael Lima from comment #0)
> Steps to reproduce (see attached file)
> 4) Select the whole table
> 5) Right click: Size > Minimal Row Height

Can't reproduce with:

Version: 25.2.0.3 (X86_64) / LibreOffice Community
Build ID: e1cf4a87eb02d755bce1a01209907ea5ddc8f069
CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US
Calc: threaded

in both tables in the attached presentation, following instructions (3) through (5) results in the row hights being reduced, to fit the text quite snugly.

Can anyone else reproduce this?
Comment 6 QA Administrators 2025-09-03 03:14:11 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2025-11-25 15:32:18 UTC Comment hidden (obsolete)
Comment 8 Eyal Rozenberg 2025-11-25 19:56:58 UTC
I'll just mention that I _can't_ reproduce this with:

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d2def868cb3ac5a7e538a911e83d7d907a2ec794
CPU threads: 4; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: en-IL (en_IL); UI: en-US

I opened the file, entenered the table, selected all cells, right-clicked, chose Size > Minimal Row Height - and the height contracted to something that's kind of minimal.
Comment 9 BogdanB 2025-11-26 05:41:19 UTC
Minimal row height can be tested like this. In a cell enter more text. Then remove part of the text, and the table stay the same size. Now, if we apply minimal row height it is working, it is shrinking. 

It was working also in the case reported but the table was already at the minimum size.