Bug 139018 - Document how to modify table borders
Summary: Document how to modify table borders
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
6.2.0.3 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL: https://help.libreoffice.org/7.2/en-U...
Whiteboard:
Keywords:
: 107679 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-12-18 01:44 UTC by Kevin Suo
Modified: 2022-06-20 11:40 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Screencast (no repro) (627.63 KB, video/mp4)
2020-12-20 06:05 UTC, Aron Budea
Details
Screencast to Reproduce (1.78 MB, video/webm)
2020-12-21 06:30 UTC, Kevin Suo
Details
normal behavior (1.76 MB, video/mp4)
2021-04-28 19:21 UTC, José Luís Andrade
Details
bug behavior (1.78 MB, video/mp4)
2021-04-28 19:22 UTC, José Luís Andrade
Details
[VIDEO] All borders affected when only some cells are selected (2.11 MB, video/mp4)
2021-05-12 20:49 UTC, Rafael Lima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Suo 2020-12-18 01:44:56 UTC
Steps to Reproduce:

1. Insert a 2*2 table in Writer;

2. Apply borders to all cells, so the borders look like this:
----------
|   |    |
----------
|   |    |
----------

3. In table property dialog, remove the left and right borders, then click OK.

Current Result:
----------
|   |    |
----------
|   |    |
----------

Expected Result:
----------
    |     
----------
    |     
----------

LibreOffice 7.1 beta
Build ID c6e46a2fdef325a94ef2d43f5eb4a0ff47b28a14
Fedora 32
Comment 1 Kevin Suo 2020-12-18 01:47:15 UTC
A workaround is to first remove all borders, and then re-apply the desired borders.
Comment 2 Telesto 2020-12-18 23:22:41 UTC
Repro
Version: 7.1.0.0.alpha1+
Build ID: c784b3da15102caf1022e83371863a86766e69cd
CPU threads: 4; OS: Mac OS X 10.12.6; UI render: default; VCL: osx
Locale: nl-NL (nl_NL.UTF-8); UI: en-US
Calc: threaded
Comment 3 Aron Budea 2020-12-20 02:29:29 UTC
Can't reproduce in 7.2.0.0.alpha0+ (e57665ea6f812aff9fc87073ce947f40a8b26e9d) / Ubuntu.
Not sure if it's fixed now or I'm missing something, are you applying table borders using the Table toolbar? Plus I'm assuming you're inserting the table via the dialog, and not the toolbar widget, which already adds borders.

Telesto, you set regression and bibisectRequest keywords, can you also provide a known working version number / hash?
Comment 4 Kevin Suo 2020-12-20 03:49:10 UTC
Steps 2 and 3 are all done using the table property dialog, not the toolbar. In addition, by saying appling the borders I mean set the desired borders _and click OK_.
Comment 5 Aron Budea 2020-12-20 06:05:21 UTC
Created attachment 168351 [details]
Screencast (no repro)

I see. I'm attaching a screencast of the steps, and what I see as result.
Comment 6 Telesto 2020-12-20 08:25:04 UTC
No repro with
Version: 7.2.0.0.alpha0+ (x64)
Build ID: 315c7570c4a72f4c834086082825533b1e50d1bf
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL

The issue is present with
7.1.0.0.alpha1+ on osx

Not sure if the fix got backported (didn't test 7.1b2)
Comment 7 Kevin Suo 2020-12-21 06:12:13 UTC Comment hidden (obsolete)
Comment 8 Kevin Suo 2020-12-21 06:27:33 UTC
(In reply to Aron Budea from comment #5)
I see from your screencast that you followed the wrong steps. 

Detailed Steps to Reproduce:

1. Insert a 2*2 table in Writer using "Table > Insert Table" menu.

2. Click the top-left corner of the inserted table, to select the whole table, then right-click and select "Table Properties". In the table properties dialog, apply borders to all cells by clicking the 4th pre-defined border style, then click OK. So the borders look like this:
----------
|   |    |
----------
|   |    |
----------

3. Right-click in the table and click "Table Properties" again; in the table properties dialog, remove the left and right borders, then click OK.

Current Result:
----------
|   |    |
----------
|   |    |
----------

Expected Result:
----------
    |     
----------
    |     
----------
Comment 9 Kevin Suo 2020-12-21 06:30:23 UTC
Created attachment 168368 [details]
Screencast to Reproduce
Comment 10 Telesto 2020-12-21 07:39:21 UTC Comment hidden (obsolete)
Comment 11 Kevin Suo 2020-12-21 07:51:55 UTC
Bug still exists if I run with 
SAL_USE_VCLPLUGIN=gen ./instdir/program/soffice

(as compared with gtk3).
Comment 12 Kevin Suo 2020-12-21 07:56:02 UTC
Bug already existed in
Version: 6.2.0.0.beta1+
Build ID: 9df01c894d73e744a9d55c3db64f052a8f496287
CPU threads: 4; OS: Linux 5.9; UI render: default; VCL: gtk3; 
Locale: zh-CN (zh_CN.UTF-8); UI-Language: en-US
Calc: threaded

And may be even older, or even never worked. Could someone having the "releases" bibisect repo to test?
Comment 13 Telesto 2020-12-21 08:49:40 UTC
(In reply to Kevin Suo from comment #12)
It should be in the 7.1 branch.. far to many people would have noticed between 6.2-7.0.. So if it's present in older editions it's a local problem (profile?)

However I do believe it's in or was in the 7.1 branch
Comment 14 raal 2021-04-07 17:24:55 UTC
I can reproduce this on Linux with Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a) and 7.2 (SAL_USE_VCLPLUGIN=gen ./opt/program/soffice)
Comment 15 José Luís Andrade 2021-04-28 19:21:25 UTC
Created attachment 171481 [details]
normal behavior
Comment 16 José Luís Andrade 2021-04-28 19:22:21 UTC
Created attachment 171482 [details]
bug behavior
Comment 17 Timur 2021-05-10 14:13:29 UTC
Doesn't look clear. 
Comment 0/Comment 8 is repro also in Windows, so hardly platform specific. 
Rather, difference is whether border click is 2 or 3 times (1 time is select).
Works with 3 times. Is it OK for you?
Only issue I have with this is: where's this documented? 

Comment 15 and Comment 16 is another issue, regression in 7.2+.
Comment 18 Timur 2021-05-11 09:59:30 UTC
Per my previous comment, I change this bug to Documentation.
If you disagree, please explain.

Note that in Comment 15 and Comment 16 (which are another issue like bug 142165 or bug 142166) borders were removed with 3 clicks, which seems right, just needs to be explained.
Comment 19 Kevin Suo 2021-05-11 10:18:26 UTC
(In reply to Timur from comment #18)
OK, now I see it. The same strange behaviour also exists in Calc. This is the first time I know how to apply borders in LibreOffice this way, having been a LibreOffice user for so many year. Apparently this must be extensively documented.
Comment 20 Rafael Lima 2021-05-12 20:26:28 UTC
The intermediary gray state is used when you select multiple cells and some of them have different border formats.

From the Writer Guide 7.1, page 287:
https://documentation.libreoffice.org/assets/Uploads/Documentation/en/WG71/WG71-WriterGuide.pdf

"When the selected cells have different styles of border, the User-defined area shows
the border as a gray line. You can click the gray line to choose a new border style
(first click), leave the border as it is (second click) or delete the border (third click)."

The corresponding help page is:
https://help.libreoffice.org/7.2/en-US/text/shared/guide/border_table.html?DbPAR=WRITER

The help page opened via HID is:
https://help.libreoffice.org/7.1/en-US/text/shared/01/05030500.html

None of them mention how each click works and need an update.
Comment 21 Rafael Lima 2021-05-12 20:49:22 UTC
Created attachment 171932 [details]
[VIDEO] All borders affected when only some cells are selected

In spite of the lack of documentation (which does need fixing), border formatting via Table Properties seems to be broken in LibreOffice. The Writer Guide says:

"If a group of cells is selected, the border will be applied only to those cells."

However, in the video I've just uploaded note how border formatting does not work as expected using the Table Properties dialog.

Interestingly, formatting using the sidebar works as expected.

I guess we're facing a border formatting bug here as well.

System info:
Version: 7.1.3.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 16; OS: Linux 5.8; UI render: default; VCL: kf5
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.1.3~rc2-0ubuntu0.20.10.1~lo1
Calc: threaded
Comment 22 Timur 2021-05-13 06:52:32 UTC Comment hidden (obsolete)
Comment 23 Rafael Lima 2021-05-13 16:53:54 UTC Comment hidden (obsolete)
Comment 24 Rafael Lima 2021-05-13 16:56:38 UTC
(In reply to Timur from comment #22)
> Border to all cells instead to selected is regression bug 142165.

Timur, forget my question in the previous message. Only now I read the bug report 142165.
Comment 25 Telesto 2021-05-23 07:41:25 UTC
*** Bug 107679 has been marked as a duplicate of this bug. ***