Bug 156770 - Sidebar doesn't maintain its user fixed size for example after reload the document or the next time it opens.
Summary: Sidebar doesn't maintain its user fixed size for example after reload the doc...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.3 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Sidebar-UI-UX Technical
  Show dependency treegraph
 
Reported: 2023-08-14 16:49 UTC by Davide
Modified: 2023-09-04 11:08 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Davide 2023-08-14 16:49:29 UTC
Description:
Generally speaking, a window or toolbar should maintain its user fixed size.
Regression from previous version of Writer

Steps to Reproduce:
1- Choose >Navigator from side bar
2- Fix a width
3- Choose Styles in navigator bar
4- File > Reload 

Actual Results:
Go back to Navigator: side bar is narrower than before

Expected Results:
The side bar width is the same fixed, even after closing and restarting LO


Reproducible: Always


User Profile Reset: No

Additional Info:
Suggestion: every application can have a different width of side bar as side bar may have different use according to the application in which it is used.

Versione: 5.4.3.2 (x64)
Build ID: 92a7159f7e4af62137622921e809f8546db437e5
Thread CPU: 8; SO: Windows 6.19; Resa interfaccia: predefinito; 
Versione locale: it-IT (it_IT); Calc: group
Comment 1 V Stuart Foote 2023-08-16 23:59:38 UTC
That is a really old build of LibreOffice, the Sidebar deck size/position "persistence" has received attention over recent builds.

Please retest with a 7.6.1 release or current master against 24.02
Comment 2 Davide 2023-08-18 08:18:18 UTC
This issue appears from release 7.5.4.2. I just checked 7.6.0.3 and it remains.
The same is true for the horizontal space in the gallery side bar of Draw, but I'll post a different bug report for this.
Comment 3 Davide 2023-08-18 11:37:55 UTC
Sorry, I checked with 7.6.0, not 7.6.1. The same test has been carried out with:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 8b9643960117612b7e1cae1ed8325c2630232d0f
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: it-IT (it_IT); UI: it-IT
Calc: CL threaded

with the same results, closin and opening the file again and save and then reload it.
The width of side bar doesn't return as fixed and also the hoizontal division on Gallery.
Comment 4 QA Administrators 2023-08-19 03:19:54 UTC Comment hidden (obsolete)
Comment 5 Davide 2023-08-21 14:12:28 UTC
I checked with 7.6.0.3 and the issue remains.
Comment 6 Stéphane Guillou (stragu) 2023-08-29 23:48:10 UTC
Confirmed, the active deck (temporarily) keeps the same width but switching to another resets its width to its minimum. It should persist after a document reload.

Tested with:

Version: 7.6.0.2 (X86_64) / LibreOffice Community
Build ID: 41d6f628ba3f046f16b5fa9fa8db8d4c2ab3b582
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

To be more precise, Steps to Reproduce:

1- Choose > Navigator from side bar
2- Set to maximum width
3- Switch to Styles deck: note that the width matches the Navigator's
4- File > Reload: note that the Styles deck's width hasn't changed
5- Switch to Navigator deck

Result: Navigator deck has minimum width. In fact, all others do once you switch.

Reproduced in 7.4.7.2 but not in 7.3.7.2, so marking as a regression.
Comment 7 Stéphane Guillou (stragu) 2023-09-01 18:13:41 UTC
With steps from comment 6 and the linux-64-7.4 repo, I bibisected it to first bad commit 837ba694d276705ecac2999951615c7d3c41d4e3 which points to core commit 334b44affe24340f44216021a4699699dd5dde96 which is a cherrypick of:

commit 0ec2b93c28093c80572c43f7be261630bd85f232
author	xuenhua Wed Jun 01 15:29:49 2022 +0800
committer	Caolán McNamara Fri Jun 17 20:52:05 2022 +0200
tdf#149431 Fix the sidebar's width
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135220

Bug 149431 was marked a duplicate of bug 128180: "Allow each deck to keep its own width in the sidebar".

So as I understand it: the test case of bug 149431 (moving to a wider deck affects the width of the previous deck) is indeed fixed, but we lost the persistence of a deck wider than the minimum widthf after a reload.
Best example of why this is problematic is probably the Gallery deck: the user might want to always show 4 columns of objects. It is reset to 2 columns after a reload.

Enhua, can you please have a look?
Heiko, you've followed the Sidebar width conversation in more detail than me, copying you in in case you have input :)
Comment 8 Heiko Tietze 2023-09-04 11:08:13 UTC
IIRC there is an expert option to change the behavior. MinimumWidth = false maybe?