Bug 63136

Summary: table cell is set to align=bottom, but cell contents are at top
Product: LibreOffice Reporter: Steve Kelem <steve>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: rb.henschel, stephane.guillou
Priority: medium    
Version: Inherited From OOo   
Hardware: x86-64 (AMD64)   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 120275    
Attachments: ODT file with table cell alignment problem
Two frames with tables in the same place

Description Steve Kelem 2013-04-04 21:50:44 UTC
Created attachment 77448 [details]
ODT file with table cell alignment problem

The top row of the attached table has align=bottom, but the cell contents are at the top of the cell.

If I right-click, select Cell, then "Bottom" is check-marked.
The button on the Table Toolbar that selects "Bottom" is highlighted if I click in any of those cells, and highlights on "Center" for cells with that attribute (middle rows), and highlights on "Top" for cells with that attribute (bottom row).

I can't see any way to get the cell contents at the bottom of those cells.
Comment 1 A (Andy) 2013-04-06 10:01:05 UTC
This issue is buggy with LO 4.0.2.2 (Win7 Home, 64bit).

But I had a different experience.  If I open the attached file, then all the entries in the top row are aligned correctly at the bottom.
If I choose for one entry in the top row the alignment to the TOP, then it is aligned at the top.  But, if I afterwards want to change this alignment back to at the bottom, then it does not work, it will stay at the top.
In addition, it is not possible at all to choose the alignment at the CENTER.
Comment 2 Gordo 2015-04-18 16:46:01 UTC
Created attachment 114884 [details]
Two frames with tables in the same place

1. Open attached document.
2. Place cursor in top left cell of table.
Note:
In the toolbar, the alignment is top.
3. Click on Align Bottom in toolbar.
Result:
Text in cell is still aligned to top.
4. Click on border of frame.
5. Use the left arrow key to move the frame to the left.
Result:
The text in the cell is now aligned to bottom.

The original document has two frames with similar tables occupying the same place.  I am sure quantum mechanics has something to say about this.

Windows Vista 64
Version: 4.4.2.2
Build ID: c4c7d32d0d49397cad38d62472b0bc8acff48dd6
Comment 3 QA Administrators 2016-09-20 09:24:54 UTC Comment hidden (obsolete)
Comment 4 Regina Henschel 2016-12-28 23:16:58 UTC
The bug still exists in Version: 5.4.0.0.alpha0+
Build ID: 690cf2a5ac87d3d05c45a86944e7f6b0adf12cf2
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2016-12-15_18:59:20
Locale: de-DE (de_DE); Calc: group

It seems, that alignment depends on the cell width. If you make the surrounding frame wider and then manipulate the column width with of the first column using Alt-Arrow, then if the column becomes to small, the T jumps to the top.
Comment 5 Regina Henschel 2016-12-28 23:24:27 UTC
1,8cm column width is fine, but 1,7cm is too small.
Comment 6 QA Administrators 2017-12-29 03:28:36 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2020-10-03 03:51:56 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2022-10-06 04:10:38 UTC Comment hidden (obsolete)
Comment 9 Stéphane Guillou (stragu) 2023-06-13 23:09:40 UTC
I can reproduce the original issue only by changing the alignment to top, then trying to align back to the bottom of the cell: the content stays at the top.

Inherited from LO, and also in a recent master build:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 3a6d360b5e585b8e92cc0d58d5fbc497448e11fb
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded