Summary: | Odd behavior when setting window position/size with setPosSize | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | Jordi <bugs.df.org> |
Component: | BASIC | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | rafael.palma.lima |
Priority: | medium | ||
Version: | 4.3.7.2 release | ||
Hardware: | All | ||
OS: | All | ||
See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=117828 | ||
Whiteboard: | |||
Crash report or crash signature: | Regression By: |
Description
Jordi
2022-10-21 09:45:30 UTC
LibreOffice 3.3.0 OOO330m19 (Build:6) tag libreoffice-3.3.0.4 Similar behavior with above version on Windows 10. If this is a safety feature, so Windows don't get lost outside viewable area, might I suggest a new option under the Window menu, "Move window to viewable area"? Additional info of versions tested: Version: 7.0.5.2 (x64) Build ID: 64390860c6cd0aca4beafafcfd84613dd9dfb63a CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: en-AU (en_AU); UI: en-GB Calc: CL Version: 7.4.2.3 (x64) / LibreOffice Community Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: en-AU (en_AU); UI: en-GB Calc: CL Version: 7.1.5.2 / LibreOffice Community Build ID: 10(Build:2) CPU threads: 2; OS: Linux 5.11; UI render: default; VCL: gtk3 Locale: en-AU (en_AU.UTF-8); UI: en-US Ubuntu package version: 1:7.1.5-0ubuntu0.21.04.1 Calc: threaded The problem is that the line oWindow.IsMaximized = False ... restores the window position, as when you double-click the header bar. So in your code it first restores the window and then the position/size is applied. (In reply to Rafael Lima from comment #4) > The problem is that the line > > oWindow.IsMaximized = False > > ... restores the window position, as when you double-click the header bar. > So in your code it first restores the window and then the position/size is > applied. ok but even if I comment this line, and with a non-snapped window, if I do oWindow.setPosSize(1,1,958,968,15) the windows is still ~10px of the edge. |