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
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
It does get the size of the 'old' closed window. At the position of the old closed window
User Profile Reset: No
Version: 184.108.40.206.alpha0+ (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
Created attachment 174925 [details]
Screencast showing the particularity's new document window size & position
Build ID: e8938fd3328e95dcf59dd64e7facd2c7d67c704d
Versie 220.127.116.11 (Bouw-id: 7545bee9c2a0782548772a21bc84a9dcc583b89)
I'm not seeing the advantage of current behaviour.
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.)
(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)
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".
Nope, consider at the other please ;-).
*** This bug has been marked as a duplicate of bug 135492 ***