Bug 91497 - When column is too narrow - autofit does not expand the column.
Summary: When column is too narrow - autofit does not expand the column.
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: Other All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-22 19:59 UTC by Edmund Laugasson
Modified: 2016-09-20 14:35 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
backtrace log in Linux (3.58 KB, text/x-log)
2015-05-22 20:21 UTC, Edmund Laugasson
Details
strace log in Linux (53.68 KB, text/plain)
2015-05-22 20:22 UTC, Edmund Laugasson
Details
document created during backtrace as root (9.66 KB, application/vnd.oasis.opendocument.text)
2015-05-22 20:23 UTC, Edmund Laugasson
Details
document created during strace as regular user (13.13 KB, application/vnd.oasis.opendocument.text)
2015-05-22 20:24 UTC, Edmund Laugasson
Details
Bug still exist - autofit columns does not work (10.97 KB, application/vnd.oasis.opendocument.text)
2015-07-13 19:05 UTC, Edmund Laugasson
Details
works for me when creating new file from scratch in 5.2.1 (9.62 KB, application/vnd.oasis.opendocument.text)
2016-09-20 14:35 UTC, Edmund Laugasson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Edmund Laugasson 2015-05-22 19:59:41 UTC
Using 64-bit Linux Mint Cinnamon 17.1 with 4.0.4-040004-generic kernel
LibreOffice version: 5.0.0.0.beta1
Build ID: 0a16c3dda4150008d9be6f24cbd15ac198d116d3
Locale: et-EE (et_EE.UTF-8)


When column is too narrow - automatic width does not expand the column.

Steps to reproduce:
* insert table
* insert content so that it will go into multiple rows
* select all table
* try to adjust automatically column width using Table->Autofit->Optimal column width

Result: column width will be not changed if it was narrower than content.

Column width automation works only when width is broader than content.
Comment 1 Edmund Laugasson 2015-05-22 20:21:43 UTC
Created attachment 115853 [details]
backtrace log in Linux

Using 64-bit Linux Mint Cinnamon 17.1 with 4.0.4-040004-generic kernel
LibreOffice version: 5.0.0.0.beta1
Build ID: 0a16c3dda4150008d9be6f24cbd15ac198d116d3
Locale: et-EE (et_EE.UTF-8)
Comment 2 Edmund Laugasson 2015-05-22 20:22:30 UTC
Created attachment 115854 [details]
strace log in Linux

Using 64-bit Linux Mint Cinnamon 17.1 with 4.0.4-040004-generic kernel
LibreOffice version: 5.0.0.0.beta1
Build ID: 0a16c3dda4150008d9be6f24cbd15ac198d116d3
Locale: et-EE (et_EE.UTF-8)
Comment 3 Edmund Laugasson 2015-05-22 20:23:37 UTC
Created attachment 115855 [details]
document created during backtrace as root

Using 64-bit Linux Mint Cinnamon 17.1 with 4.0.4-040004-generic kernel
LibreOffice version: 5.0.0.0.beta1
Build ID: 0a16c3dda4150008d9be6f24cbd15ac198d116d3
Locale: et-EE (et_EE.UTF-8)
Comment 4 Edmund Laugasson 2015-05-22 20:24:57 UTC
Created attachment 115856 [details]
document created during strace as regular user

Using 64-bit Linux Mint Cinnamon 17.1 with 4.0.4-040004-generic kernel
LibreOffice version: 5.0.0.0.beta1
Build ID: 0a16c3dda4150008d9be6f24cbd15ac198d116d3
Locale: et-EE (et_EE.UTF-8)
Comment 5 Edmund Laugasson 2015-05-22 20:29:49 UTC
The crucial part of the bug is: when table is too right side then autofit function will not move table to left as much as needed to autofit the content.

This applies also when table is already aligned to the right and then there is a need to change something in the table and then again need to re-autofit the content - it will not work if table is even a little bit too right side.

Expected result - when at the left side is enough free space then autofit function should use that free space also at left side and not right only.
Comment 6 Buovjaga 2015-05-25 12:58:54 UTC
(In reply to Edmund Laugasson from comment #5)
> The crucial part of the bug is: when table is too right side then autofit
> function will not move table to left as much as needed to autofit the
> content.
> 
> This applies also when table is already aligned to the right and then there
> is a need to change something in the table and then again need to re-autofit
> the content - it will not work if table is even a little bit too right side.
> 
> Expected result - when at the left side is enough free space then autofit
> function should use that free space also at left side and not right only.

For me it works ok. It expands to the left side, if I have too much stuff in a right-side column.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
Build ID: b9630867d17c01ec41f6461b1e96288f3932248c
TinderBox: Win-x86@39, Branch:master, Time: 2015-05-25_00:45:41
Locale: fi-FI (fi_FI)
Comment 7 Jean-Baptiste Faure 2015-07-12 18:10:37 UTC
Not reproducible for me with Version: 5.0.1.0.0+
Build ID: f6b9ba3394db50c94427e2d9cd83a5b13f528f41
built at home under Ubuntu_15.04_x86-64

Please, could you test again with the current RC?

Best regards. JBF
Comment 8 Edmund Laugasson 2015-07-13 19:05:18 UTC
Created attachment 117214 [details]
Bug still exist - autofit columns does not work

Hereby I tested with current dev version LibreOffice 5.0.0 RC3 and I have to admit that bug still exist.

Version: 5.0.0.3
ID: f79b5ba13f5e6cbad23f8038060e556217e66632
Locale: et-EE (et_EE.UTF-8)
OS: 64-bit Linux Mint 17.2 with Cinnamon desktop, kernel 4.0.8-040008-generic

I created table with 2 rows and columns, entered text and used autofit. So far so good. Then I added some words so the text went to two rows. Now autofit does not work.
Comment 9 Buovjaga 2015-07-14 10:48:36 UTC
(In reply to Edmund Laugasson from comment #8)
> Created attachment 117214 [details]
> Bug still exist - autofit columns does not work

Ok, so I didn't understand that the table needs to be placed to the right side of the page.
Now I could reproduce. Note: In 5.1 there is no Table - Autofit menu item anymore! So with 5.1 I used the toolbar icon https://help.libreoffice.org/Writer/Optimal_Width

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+ (x64)
Build ID: 8de7d44f96252e97e224d42466698114370dbaa3
TinderBox: Win-x86_64@62-TDF, Branch:MASTER, Time: 2015-07-13_21:43:47
Locale: fi-FI (fi_FI)

Versio: 5.0.0.3
Käännöksen ID: f79b5ba13f5e6cbad23f8038060e556217e66632
Maa-asetus: fi-FI (fi_FI)

Ubuntu 15.04 64-bit 
OpenOffice.org 3.3.0
OOO330m20 (Build:9567)
Comment 10 QA Administrators 2016-09-20 10:18:20 UTC Comment hidden (obsolete)
Comment 11 Edmund Laugasson 2016-09-20 14:33:09 UTC
Tested with LibreOffice 5.2.1, 64-bit on Linux Mint 18 (kernel 4.7.4).
When created new files in LibreOffice 5.2.1 - it worked.
But when opening these files included when the bug reported - did not work.
Result: new files are working but not old ones.
Comment 12 Edmund Laugasson 2016-09-20 14:35:33 UTC
Created attachment 127471 [details]
works for me when creating new file from scratch in 5.2.1

Tested with LibreOffice 5.2.1, 64-bit on Linux Mint 18 (kernel 4.7.4).
Not sure whether to consider it solved or not. With new 5.2.1 version it works but not with old files. This might be still a problem when opening files made with older version of LibreOffice.