Bug 137612 - Table Rows aren't vertically centered; possibly triggered by page break.
Summary: Table Rows aren't vertically centered; possibly triggered by page break.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 154130 (view as bug list)
Depends on:
Blocks: Writer-Tables
  Show dependency treegraph
 
Reported: 2020-10-20 08:20 UTC by Clarc
Modified: 2024-01-18 05:26 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Bugged .odt-file (22.46 KB, application/vnd.oasis.opendocument.text)
2020-10-20 08:21 UTC, Clarc
Details
PDF of the bugged .odt-file (37.29 KB, application/pdf)
2020-10-20 08:21 UTC, Clarc
Details
xml-export of the bugged .odt-file (77.64 KB, text/xml)
2020-10-20 08:22 UTC, Clarc
Details
.odt in MSO 2016 and LO 7.1+ (169.15 KB, image/png)
2020-10-28 07:30 UTC, Timur
Details
Bugged .odt-File 2222 (23.15 KB, application/vnd.oasis.opendocument.text)
2020-10-28 19:55 UTC, Clarc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Clarc 2020-10-20 08:20:47 UTC
Description:
Sometimes – I don't know why – one or two rows of a table stop being vertically centered, even though they're set to behave this way.

The table corrects itself when clicking on the bugged row or when doing big edits in a document (deleting headings or adding/deleting multiple rows of text).
I still consider this a somewhat important bug as it seems somewhat random to me. This is a problem because it might mean that someone is working on a big project, while the document keeps changing behind his back.

Also, when exporting the .odt-file as a PDF, the non-centered-ness still get's ported over.

Steps to Reproduce:
1. Open the .odt file I have attached.
2. Scroll down towards the 3rd white table-row.
3. See bug: The 10 (and the "SA, Studenten; Ein Gespräch.") isn't centered. Those two cells are the ones that are supposed to be vertically centered.

Actual Results:
The 10 (and the "SA, Studenten; Ein Gespräch.") isn't centered. Those two cells are the ones that are supposed to be vertically centered.

When the bug occurred to me, two or three rows were off-center. Unfortunately, I corrected them (by clicking on them) and saved the document. Well, it happened again.

Expected Results:
This should just never happen. Table cells that are set to be (vertically) centered should stay centered.
Otherwise, LO might be messing up documents behind a users back.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
I tested on both Windows (LO 7.0.1.2) and on Linux (LO 7.0.2.2).

Here's the data from Linux Mint 20:
Version: 7.0.2.2
Build ID: 8349ace3c3162073abd90d81fd06dcfb6b36b994
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: de-AT (en_GB.UTF-8); UI: en-GB
Flatpak
Calc: threaded

Also, on Windows, I tested on both Word and LO. Word opened the files correctly (actually, when I tested the whole thing, i used a .docx-file, but the bug seems to also be present on .odt)
Seeing as how MS Word seemed to handle this file just fine, this is probably a LO-Bug and has little to do with the actual file. I might be wrong about that though.
Comment 1 Clarc 2020-10-20 08:21:18 UTC
Created attachment 166529 [details]
Bugged .odt-file
Comment 2 Clarc 2020-10-20 08:21:41 UTC
Created attachment 166530 [details]
PDF of the bugged .odt-file
Comment 3 Clarc 2020-10-20 08:22:58 UTC
Created attachment 166531 [details]
xml-export of the bugged .odt-file

I couldn't find any clues what could have caused this in the .xml file but someone more experienced might.
Comment 4 Timur 2020-10-27 11:22:39 UTC
Cannot confirm. 
The 10 (and the "SA, Studenten; Ein Gespräch.") isn't centered because that row is divided between pages.
If you delete text above, it centers. 
MSO behaves the same as LO for this row. 
Change could be requested, but I wouldn't support it. 
So please clarify. 
DOCX is another issue.
Comment 5 Clarc 2020-10-27 19:58:20 UTC
> (In reply to Timur from comment #4)
Thank you for testing, there's a few misunderstandings however:

> The 10 (and the "SA, Studenten; Ein Gespräch.") isn't centered because that
> row is divided between pages.
As far as I can tell, this is not true. I'm not sure how you got that information, but here are two reasons why it shouldn't be due to the row being divided across pages:

1. In the exact same layout (meaning the 10-row is split between pages), I had BOTH the 10-row and the 45-row stuck in this state. Thus, it can't be just be the page break. (actually, the 45-row was the only off-centered one. 10 was fine.)

2. Something to easily test:
a. Open the .odt
b. Look at the 10-row. It should be vertically misaligned.
c. Click somewhere inside the 10-row. The row should correct its alignment. This happened without you deleting stuff. The 10-row still is split. The text became centered though. Thus, it can't be the page-break that's responsible.

> If you delete text above, it centers.
Yes, but as shown in my previous point, this doesn't mean what it might seem to show.

> MSO behaves the same as LO for this row.
I assume MSO means Microsoft Office? In my tests, MSO DIDN'T behave as did LO. In MSO, the 10 actually was vertically centered. In LO, the 10 was vertically misaligned.

> So please clarify. 
Did my answers make sense?

Also, I do not support setting this to a low-priority issue. Tables morphing behind your back isn't a minor thing to happen and it makes LibreOffice and the files it exports seem unprofessional. (LO is amazing though, which is why this is unfortunate)
Comment 6 Timur 2020-10-28 07:30:17 UTC
Created attachment 166787 [details]
.odt in MSO 2016 and LO 7.1+

We don't see the same, here is comparison of MSO and LO. Let's wait next opinion.
Comment 7 Buovjaga 2020-10-28 09:40:13 UTC Comment hidden (obsolete)
Comment 8 Clarc 2020-10-28 10:40:56 UTC
(In reply to Timur from comment #6)
> Created attachment 166787 [details]
> .odt in MSO 2016 and LO 7.1+
> 
> We don't see the same, here is comparison of MSO and LO. Let's wait next
> opinion.
That picture shows EXACTLY what I was talking about! Look at the 10 and at "SA, Studenten; Ein Gespräch."
On the left side (MSO) they are vertically centered. On the right (LO) they cling to the top, which is what my bug-report is all about!

Also, thank you for uploading that comparison. It's a great picture, that helps illustrate the bug.

(In reply to Buovjaga from comment #7)
> Clarc: which version of MS Office do you use?
When I tested, i did so on a Laptop I didn't own. Give me a few hours to check the version.
Also:
1. Why is the MS Office-version relevant?
2. As stated previously, the Screenshot Timur posted perfectly showed the bug. I feel like there's some confusion about what i was talking about when filing this bug... Is anything unclear?
Comment 9 Buovjaga 2020-10-28 11:04:41 UTC
(In reply to Clarc from comment #8)
> 1. Why is the MS Office-version relevant?
> 2. As stated previously, the Screenshot Timur posted perfectly showed the
> bug. I feel like there's some confusion about what i was talking about when
> filing this bug... Is anything unclear?

Right, I do see what you mean now, so Timur actually confirmed -> NEW

MSO versions behave differently and are not compatible with each other in various ways.
Comment 10 Clarc 2020-10-28 11:44:15 UTC
(In reply to Buovjaga from comment #9)
> Right, I do see what you mean now, so Timur actually confirmed -> NEW
Not sure if he intended to confirm, but his screenshot clearly shows the bug.
 
> MSO versions behave differently and are not compatible with each other in
> various ways.
I'll post it in a few hours, as soon as I get access to that PC.

Also, I'm not a 100% sure "Table Rows aren't vertically centered, when split across two pages" is the correct Title for this bug.
As I previously mentioned, the row starting with "45" used to be misaligned as well, in the same position. It shouldn't just be the split row.

I suggest reading my replies to Timur to get a clearer picture of how this bug works if you didn't already do so.
Comment 11 Clarc 2020-10-28 19:54:52 UTC
Okay, so I have some more information.

I stubled over a different version of the same document, and we can use it to mess up more rows. Here is how to get multiple misaligned rows:

1. Download "Bugged .odt-File 2222" and open it. The "10" and the 
"SA, Studenten;
Ein Gespräch."
should be misaligned.
2. Now slowly delete the footnote. As more and more table-rows move to the first page, they too start being misaligned.

WHAT THIS MEANS: 
1. It's not the page-break that keeps those rows stuck in the vertically misaligned position. If you save the document and reopen, all 3 rows will still be misaligned, not just the first one.
2. The page-break may however trigger that change in the first place.

I changed the title accordingly.

.
.
.

(In reply to Buovjaga from comment #7)
> Clarc: which version of MS Office do you use?
Windows: "Version 2009 (Build 13231.20418 Klick-und-Los)
Android: 1.0.1
On both of them the Table gets displayed correctly. It's only LO (and maybe OpenOffice) that display (and export to PDF) the file incorrectly.
Comment 12 Clarc 2020-10-28 19:55:35 UTC
Created attachment 166822 [details]
Bugged .odt-File 2222
Comment 13 QA Administrators 2022-10-29 03:39:02 UTC Comment hidden (obsolete)
Comment 14 Clarc 2022-11-04 07:49:06 UTC
The bug still is present.



The initially attached document still contains the bug.

The attachment of comment https://bugs.documentfoundation.org/show_bug.cgi?id=137612#c6 contrasts the bug with how the document looks in MS Word. 

Comment https://bugs.documentfoundation.org/show_bug.cgi?id=137612#c11 nicely highlights how to reproduce the bug yourself.



Version: 7.4.2.3 / LibreOffice Community
Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf
CPU threads: 8; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Flatpak
Calc: threaded
Comment 15 Stéphane Guillou (stragu) 2023-03-26 21:51:07 UTC
*** Bug 154130 has been marked as a duplicate of this bug. ***
Comment 16 Gong Jimin 2023-03-27 05:02:28 UTC
Thanks.
The bug still is present in Version: 7.5.1.2 (X86_64)
Comment 17 Gong Jimin 2024-01-18 05:26:10 UTC
The bug still is present in Version: 24.0.0.2 (x86_64) / LibreOffice Community
Build ID: b1fd3a6f0759c6f806568e15c957f97194bbec8f