Bug 143142 - Writer: Table properties under columns only shows max of 5 columns
Summary: Writer: Table properties under columns only shows max of 5 columns
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.1.4.2 release
Hardware: All All
: medium normal
Assignee: Alexander Solodukhin
URL:
Whiteboard: target:7.3.0 target:7.4.0 target:7.3.0.2
Keywords: difficultyBeginner, easyHack, skillCpp, topicUI
Depends on:
Blocks:
 
Reported: 2021-07-01 05:37 UTC by Kieran Grant
Modified: 2022-01-05 15:06 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot showing limit of only 5 columns resizeable with 6 columns visible in table (71.82 KB, image/png)
2021-07-01 05:38 UTC, Kieran Grant
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kieran Grant 2021-07-01 05:37:41 UTC
Description:
When trying to edit the column sizes of a table in writer, only 5 column sizes are visible, right arrow to show more is disabled.

Steps to Reproduce:
1. Create new document in writer.
2. Press Ctrl-F12 to add new table or Go to Table and Insert Table
3. Set number of columns to 6
4. Add table.
5. Right-click table and select columns.
6. Only 5 columns visible.

Actual Results:
Can only change size of first 5 columns

Expected Results:
Allow to change all column sizes


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Version: 7.1.4.2 / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 16; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL
Comment 1 Kieran Grant 2021-07-01 05:38:43 UTC
Created attachment 173299 [details]
Screenshot showing limit of only 5 columns resizeable with 6 columns visible in table
Comment 2 Kieran Grant 2021-07-01 05:40:13 UTC
Testing seems to show it only happens if number of columns is 6.

With 7 or more columns it works as expected. My guess is an off-by-one bug.
Comment 3 Kieran Grant 2021-07-01 05:48:13 UTC
Workaround for now is to create a table with 1 extra column and set the sizes of all columns as you would like, with the size of the last column shared with the extra column.

Then delete the extra column and the last column will resize to fill in the remaining space, resulting in desired size for all columns.
Comment 4 Telesto 2021-07-01 20:14:00 UTC
@Heiko
You're better up to speed with the existing enhancement requests. I'm pretty sure this being reported somewhere
Comment 5 Heiko Tietze 2021-07-02 08:08:36 UTC
Yes, it has been discussed before - and rejected because of large controls.

*** This bug has been marked as a duplicate of bug 122791 ***
Comment 6 Kieran Grant 2021-07-02 08:13:24 UTC
I'm confused by marking as duplicate of bug 122791.

This isn't a request to show more, this is a bug report that only 5 of the 6 columns are editable. (The arrow button to see more columns is unclickable)
Comment 7 Heiko Tietze 2021-07-02 08:20:41 UTC
Sorry, got it wrong. In fact I can see 6 columns with kf5/gen but only 5 with gtk3. Going down to 5 might be a (ugly) solution. Shouldn't be too difficult with this (abandoned) patch as code pointer https://gerrit.libreoffice.org/c/core/+/78648.
Comment 8 Lai-Verne 2021-10-07 05:56:07 UTC
https://gerrit.libreoffice.org/c/core/+/123203

This is my solution.
But it just solve the problem of the button.
The position of the components in windows is slightly obscured or not aligned(When the resolution changes)
I don’t know if I need to open another bug to deal with
Comment 9 Kieran Grant 2021-10-07 07:05:37 UTC
Thanks!

Tested that patch on top of e090afc2 and it solved it.
---
But I'll wait until it lands in a released version, I'm not confident enough to run bleeding edge all the time.

(At least not when I'm doing work...)
Comment 10 Commit Notification 2021-10-08 08:22:43 UTC
Verne-Lai committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/457a67a5b692e79db1aea775e0a2eb48bf1dbdfa

tdf#143142 Solve the button cannot be used when table column is 6

It will be available in 7.3.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 11 Buovjaga 2021-10-13 13:51:00 UTC
(In reply to Lai-Verne from comment #8)
> https://gerrit.libreoffice.org/c/core/+/123203
> 
> This is my solution.
> But it just solve the problem of the button.
> The position of the components in windows is slightly obscured or not
> aligned(When the resolution changes)
> I don’t know if I need to open another bug to deal with

Thanks for the fix. I don't think you need to open a new report, you can keep refining the look while referring to this report (if you want to continue).
Comment 12 Alexander Solodukhin 2022-01-04 11:25:43 UTC
Looks like we just need to re-enable scroll to right button after number of fields property get changed.
Sent pull request https://gerrit.libreoffice.org/c/core/+/127938
Comment 13 Commit Notification 2022-01-05 12:23:05 UTC
alt committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/a409739efe4507e23926d1862215c128904fda88

Fixed tdf#143142 when unable to scroll table column width properties.

It will be available in 7.4.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 14 Commit Notification 2022-01-05 15:01:28 UTC
alt committed a patch related to this issue.
It has been pushed to "libreoffice-7-3":

https://git.libreoffice.org/core/commit/b65a0aadba3cba51c9ec4f543219351dfdb4bb6c

Fixed tdf#143142 when unable to scroll table column width properties.

It will be available in 7.3.0.2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.