Bug 144408 - UI: New Document doesn't inherit size from 'source' window
Summary: UI: New Document doesn't inherit size from 'source' window
Status: RESOLVED DUPLICATE of bug 135492
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
Depends on:
Blocks: Start-Center UI Maximized-Window
  Show dependency treegraph
Reported: 2021-09-09 12:21 UTC by Telesto
Modified: 2022-04-07 07:46 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:
Regression By:

Screencast (2.68 MB, video/mp4)
2021-09-09 12:24 UTC, Telesto

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-09-09 12:21:41 UTC
UI: New Document doesn't inherit size from 'source' window

Steps to Reproduce:
1. Launch soffice (start center)
2. Resize it to a square; place it at the right of the screen
3. Press Spreadsheet in the start center
4. Press CTRL+N -> New window opens full screen (bug 14407)
5. Click the status bar of the window and drag it down (the new document becomes windowed)
7. Close the first spreadsheet (the square)
8. CTRL+N -> Notice it's opening at the position of the closed window & in square size
9. Press CTRL+N: new square sized window opens new window at the right corner)
10. Press CTRL+N new square sized window on top of the right window 
11. Press CTRL+N again. new square sized window on top of the right window 

Actual Results:
When pressing CTRL+N at step 8 I would expect a window the same size as the 'current' active window at more or less the same position (except little downward; same as happens at step 9-11). Not reopening it at the 'old' position

Expected Results:
It does get the size of the 'old' closed window. At the position of the old closed window

Reproducible: Always

User Profile Reset: No

Additional Info:
Version: (x64) / LibreOffice Community
Build ID: 05ff3d67d0e2e436406786c949eb7cfca107ba33
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: nl-NL (nl_NL); UI: nl-NL
Calc: threaded
Comment 1 Telesto 2021-09-09 12:24:08 UTC
Created attachment 174925 [details]

Screencast showing the particularity's new document window size & position
Comment 2 Telesto 2021-09-09 12:28:10 UTC
Also in
Build ID: e8938fd3328e95dcf59dd64e7facd2c7d67c704d
Locale: nl_NL

and in
Versie (Bouw-id: 7545bee9c2a0782548772a21bc84a9dcc583b89)

and in
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-
Comment 3 Telesto 2021-09-09 12:29:59 UTC
I'm not seeing the advantage of current behaviour.
Comment 4 Heiko Tietze 2021-09-10 09:22:51 UTC
Pretty sure that all new Window open with the same size after you restart the application. For some reason (maybe explained in bug 75644 comment 10) the decision was made to follow the start center - and go full screen otherwise. The better - no: the only reasonable approach is to take the OS/DE default. Another issue with the non-default, maximized window is reported in bug 125543. See also bug 49665.

Back to topic: new documents do inherit the start screen size but you have to give it a chance to store the value first. =>NAB 

(And I wouldn't touch these function; it becomes rather worse and module window change unintentionally every time you resize the start center.)
Comment 5 Telesto 2021-09-10 09:50:22 UTC
(In reply to Heiko Tietze from comment #4)
> Pretty sure that all new Window open with the same size after you restart
> the application. 

It looks this way at first sight, but is sadly not the case if you start fiddling around :-( The whole behaviour feels pretty logical except I'm lacking some a piece of the puzzle...

Step 13. Shutdown LibreOffice
Step 14. Launch start center
Step 15. Click Calc from start center (same size as Start Center; fine)
Step 16. CTRL+N -> Same size as previous window (fine)
Step 17. Resize the window of the New Document 2 (make it different from the square)
Step 18. Close the smaller document (square)
Step 19. Focus the Document 2 and press CTRL+N -> New document with small square size appears
Step 20. Close new square windowed document
Step 21. Focus Document 2 again, click the new document drop down and select Writer. -> Now writer opens in full screen
Step 22. Drag it from full screen to 'windowed' mode. Notice it uses Start Screen dimensions
Step 22. Open new Calc document from Writer, now it will be Square windowed

It seems to me that two windows sizes to be stored. One for the first document and one for the second. Maybe one from the modules itself and one relate to start center which is pushed to the 'Module' and the one stored at the module itself (say in case of directly opening Writer without Start Center)
Comment 6 Heiko Tietze 2022-04-07 07:45:14 UTC
Please consider a duplicate to bug 141400 "LO should remember settings of last user session" or bug 41777 "Window size reopening a document not like size when saved".
Comment 7 Heiko Tietze 2022-04-07 07:46:00 UTC
Nope, consider at the other please ;-).

*** This bug has been marked as a duplicate of bug 135492 ***