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)
7.0.3.1 release
Hardware: x86-64 (AMD64) All
: medium normal
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: 2022-11-29 20:42 UTC (History)
2 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