Bug 138261 - TABLE: Cell border alignment is different for horizontal and vertical borders.
Summary: TABLE: Cell border alignment is different for horizontal and vertical borders.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Table-Borders
  Show dependency treegraph
 
Reported: 2020-11-16 14:46 UTC by Matthijs Melchior
Modified: 2024-09-15 15:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot varying table-cell borders (1.88 KB, image/png)
2020-11-16 14:46 UTC, Matthijs Melchior
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matthijs Melchior 2020-11-16 14:46:12 UTC
Created attachment 167333 [details]
Screenshot varying table-cell borders

When changing vertical line-width in a table the center of the line is aligned.
When changing horizontal line-width in a table the top of the line is aligned.

This is not consistent, the appearance would be much better when both had the center aligned.

See the attached screen shot at 220% zoom factor. All cells have 0.5pt border and the middle cell has 2.5pt borders.
Comment 1 Dieter 2020-12-01 07:20:34 UTC
I tried to reproduce the problem as follows:

1. Create a new table with 3 rows and 3 columns
2. Select a row => Table properties => borders
3. Change width of the line

Width of line changes => Works as expected.

Tested with

Version: 7.1.0.0.alpha1+ (x64)
Build ID: 10b23330a9655658e6d7ef1d008a3302a15e9629
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: threaded


So please provide a clearer set of step-by-step instructions on how to reproduce the problem. I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the steps are provided.
Comment 2 Matthijs Melchior 2020-12-01 14:00:16 UTC
Yes, with your reproduction steps the problem is not apparent.

Please use the following steps:

1. Create a new table with 3 rows and 3 columns
2. Select a the middle cell => Table properties => borders
3. Select Preset "Set All Four Borders"
4. Change width to 4 pt.

You will see the following:
- the wide vertical borders center aligned with the existing thin borders
- the wide horizontal borders top aligned with the existing thin borders
- the vertical size of the row-cells changes with the new border thickness.

This is asking for the both wide and thin horizontal borders to be center aligned, just like the vertical borders.

Use case:
This is desirable for drawing an irregular Sudoku puzzle, fixed cell dimensions and center alignment of the different border thicknesses make a better grid.
Comment 3 Dieter 2020-12-01 16:53:25 UTC
Now I've got it. Thank you for the steps. I can confirm it now. But I'm not sure about the expected behaviour. So let's ask design team.
Comment 4 Heiko Tietze 2020-12-02 12:20:03 UTC
Don't see why this should be expected. Calc does correctly center both vertical and horizontal border lines. But Writer doesn't. => bug
Comment 5 Dieter 2022-11-29 20:42:35 UTC
Still present in

Version: 7.4.3.2 (x64) / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 6 Buovjaga 2024-09-15 15:50:44 UTC
Still repro and already seen in oldest of linux-43all bibisect repo

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: fb39ae1bc7e4b1cbfc3108efca52ec310faf7363
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 14 September 2024