Bug 145182 - Navigator does not remember last position when closed and reopened; nor when new session starts (GTK3?)
Summary: Navigator does not remember last position when closed and reopened; nor when ...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:7.4.0
Keywords:
Depends on:
Blocks: Navigator
  Show dependency treegraph
 
Reported: 2021-10-17 10:45 UTC by R. Green
Modified: 2024-05-26 13:02 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of default appearance of Writer 7.2.0.4 (and above) (21.64 KB, image/png)
2021-11-02 12:27 UTC, R. Green
Details

Note You need to log in before you can comment on or make changes to this bug.
Description R. Green 2021-10-17 10:45:25 UTC
Version: 7.3.0.0.alpha0+ / LibreOffice Community
Build ID: 008f28c9e01114e731f785e9e238236a1ed069d2
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2021-08-22_15:17:36
Calc: threaded

Recent changes made to the resizability of the navigator do not appear to be working properly at all.

PROBLEM 1

1. Download the latest daily appimage and open an existing file in it. Display the navigator (F5)

EXPECTED RESULT: Navigator displays undocked, at default size, full width and a reasonable length; and in a convenient position.
ACTUAL RESULT: The navigator is a tiny thing stuck in the left-hand top corner. You have to drag it into position and resize it.

PROBLEM 2

The navigator HAS to be able to display the topmost property value (default is "Page"), so there is no point, AFAICS, in allowing the user to reduce it any further. (Unless of course you can reposition the property value box to free up space on the right-hand side of the navigator.)

SUGGESTION: Maintain a minimum width for the navigator for now.

PROBLEM 3

2. With the right-hand sidebar open, position the UNDOCKED navigator to the left of it but not over it (so that it does not dock).
3. Now grab the right-hand edge of the navigator, extend it rightward so that it crosses the boundary of the sidebar, then drag it back to the original position.

EXPECTED RESULT: The navigator resumes its former size and shape; and remains undocked.
ACTUAL RESULT: The navigator becomes docked when released from the mouse. If you undock it, it assumes a size and position different from its original ones.
Comment 1 R. Green 2021-10-17 10:52:20 UTC
Note: The issue goes back to at least LO 7.2.0.4.
Comment 2 Dieter 2021-11-02 07:23:27 UTC
(In reply to R. Green from comment #0)
R. Green, you describe different problems, so pershaps it might be useful split report into  three different ones (of course they are related to each other)

> PROBLEM 1
> 
> Display the navigator (F5)
> 
> ACTUAL RESULT: The navigator is a tiny thing stuck in the left-hand top
> corner. You have to drag it into position and resize it.
For me it's the normal size. Can't see any difference to previous versions (campared it with LO 6.1.6.3). Could you please add a screenshot?
=> NEEDINFO


> PROBLEM 2
> 
> The navigator HAS to be able to display the topmost property value (default
> is "Page"), so there is no point, AFAICS, in allowing the user to reduce it
> any further. (Unless of course you can reposition the property value box to
> free up space on the right-hand side of the navigator.)
I also can't see a problem here. But screenshot might make it more clear.


> PROBLEM 3
> 
> 2. With the right-hand sidebar open, position the UNDOCKED navigator to the
> left of it but not over it (so that it does not dock).
> 3. Now grab the right-hand edge of the navigator, extend it rightward so
> that it crosses the boundary of the sidebar, then drag it back to the
> original position.
> 
> EXPECTED RESULT: The navigator resumes its former size and shape; and
> remains undocked.
> ACTUAL RESULT: The navigator becomes docked when released from the mouse. If
> you undock it, it assumes a size and position different from its original
> ones.
I confirm it and would ask design-team. but let's wait, until problem 1 and 2 are more clear.

Tested with
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 273a25c796fca9afa0dfadac57dc3f336831221c
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 3 R. Green 2021-11-02 12:27:56 UTC
Created attachment 176079 [details]
Screenshot of default appearance of Writer 7.2.0.4 (and above)

(In reply to Dieter from comment #2)
> PROBLEM 1
> For me it's the normal size. Can't see any difference to previous versions
> (campared it with LO 6.1.6.3). Could you please add a screenshot?
1. Download and open the applicable AppImage (7.2.0.4 or above).
2. Select "Writer Document".
3. Select View > Navigator.

ACTUAL RESULT: See attached screenshot, "LO_7.2.0.4.png". This shows a screenshot of the top left half of LO 7.2.0.4 (and above). The navigator is the tiny window disappearing off the top left-hand of the LO window.

EXPECTED RESULT: The navigator should be at the default size of, say LO 7.1.5.2, and fully visible in the LO window.
 
PROBLEM 2 (solved)

Issue withdrawn; my error.
Comment 4 Dieter 2021-11-02 12:53:05 UTC
(In reply to R. Green from comment #3)
> Created attachment 176079 [details]
> Screenshot of default appearance of Writer 7.2.0.4 (and above)

Looks really strange, I agree. But I can't confirm it. Perhaps only Linux? Same result in SafeMode?
Comment 5 R. Green 2022-03-10 11:33:24 UTC
Still unresolved in 7.3.1.3 (and unusable). Even if I adjust the size to "normal" before closing, it reverts to a tiny square in the top-left corner of the window when reopened.
Comment 6 R. Green 2022-03-11 11:07:53 UTC
Safe mode makes no difference.
Comment 7 Jim Raykowski 2022-03-13 02:30:06 UTC
After resetting to factory settings, I can confirm problem 1 for gtk3 but not x11 or qt5.
 
Unclear on problem 3. Does it concern resize of the floating Navigator causes the floating Navigator to move to the upper left corner of the screen? Does this happen at any position on resize or does it have to be next to the sidebar?

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 51fb84829afbc1c0957fd1a489085613ad199f1a
CPU threads: 4; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 8 R. Green 2022-05-12 09:44:58 UTC
Version: 7.3.1.3 / LibreOffice Community
Build ID: a69ca51ded25f3eefd52d7bf9a5fad8c90b87951
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Calc: threaded

The GOOD NEWS is that the main problem has been resolved; the navigator no longer appears as a tiny speck in the top-left hand corner when opened.

Since I am using the same version of Writer as in my previous post, is it possible that some update to GTK3 in the meantime has fixed this? (would be of interest to know?)

The residual issue now is that the navigator does not retain its last user-adjusted position when Writer is opened, but visibly flips back to the default position in the top left-hand corner.
Comment 9 R. Green 2022-05-12 09:48:30 UTC
… actually this issue also affects the user if you close the navigator and reopen it IN THE SAME SESSION; it reverts to the default psoition.
Comment 10 Commit Notification 2022-05-22 07:17:41 UTC
Jim Raykowski committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/671e755aef9c4019bdca2fbbe5e5e6c704954a32

tdf#145182 related: fix SwNavigator repositioning on resize

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 11 R. Green 2022-08-02 12:15:29 UTC
Version: 7.4.1.0.0+ / LibreOffice Community
Build ID: 271c119f75bc94af75acb6133a57131f19a7a9d5
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded

There is still a residual problem in that the VERY FIRST TIME you open Writer, after the install, the navigator appears only as a VERY SMALL box in the top left-hand corner.

After that it behaves correctly as expected. Resize and reposition are both remembered correctly both during and between sessions.

So it's just the original appearance that needs attention.
Comment 12 Stéphane Guillou (stragu) 2024-05-26 13:02:38 UTC
Thanks R. for the report.
Thanks Jim for the patch.

We try to keep one issue per report, so what I suggest checking what issues are left in a daily build, and opening new single-issue reports as needed.

Note that we now have bug 159948 about the multi-window Navigator position issue (which is GTK3-specific).

(In reply to R. Green from comment #11)
> There is still a residual problem in that the VERY FIRST TIME you open
> Writer, after the install, the navigator appears only as a VERY SMALL box in
> the top left-hand corner.
I can see that, it's a regression in LO 7.2, Writer-only, and GTK3-only. I have reported it in bug 161281.

Let's close this one as "works for me" in favour of existing reports (or new ones if needed).