Bug 155944 - Irrelevant page positioning when maximizing a tiled window
Summary: Irrelevant page positioning when maximizing a tiled window
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Maximized-Window
  Show dependency treegraph
 
Reported: 2023-06-20 08:53 UTC by tpypta
Modified: 2023-07-11 20:30 UTC (History)
1 user (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 tpypta 2023-06-20 08:53:22 UTC
Description:
I normally use LibreOffice Writer as a tiled window occupying the left half of the screen (on the other side of the screen I have a PDF opened). When maximizing the tiled LO window, the displayed page is not the correct one. It seems that LO just picks up a random page from the whole +130 pages document. 

Steps to Reproduce:
1. Open a large +130 pages document on a monitor with 1920x1080 screen resolution.
2. From the bottom right select Multiple page view, so that when maximized LO shows two pages side by side.
3. Tile the LO window to the left side of the screen.
4. Tile something else on the right side of the screen (jpg, PDF...)
5. Write something somewhere in the middle of the document.
6. Maximize the tiled LO window so that you can see two pages at once.

Actual Results:
LibreOffice does not preserve the page that was written on recently and goes on a random page from the document... often on the first page, but also on random pages.

Expected Results:
LO shall keep the page that was written on recently while the window was tiled.


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.5.4.2 (X86_64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: bg-BG (bg_BG); UI: en-US
Calc: CL threaded
Comment 1 Alec K 2023-07-06 19:05:25 UTC
Thank you for reporting the bug. I can confirm that the bug is present in

Version: 7.5.4.2 (AARCH64) / LibreOffice Community
Build ID: 36ccfdc35048b057fd9854c757a8b67ec53977b6
CPU threads: 10; OS: Mac OS X 13.4; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

When resizing a window from small to large while in multi-page view, a different page is presented than what was most recently edited. 

It appears that the page shown after the window size changes is roughly double the original page number (page 33 -> pages 65 and 66). Reducing the window size (without scrolling in the document) returns the document to the original/recently-edited page.