Description: I am using LibreOffice Version 6.0.4.2 Base on Windows 10. Using the command ThisComponent.CurrentController.Frame.ContainerWindow.setPosSize(0,0,500,500,15) will leave 7 px space from the left side of the screen. There is no problem with setting the y coordinate. X coordinates - if less than 8 - will be interpreted as 8. I posted the issue on LibreOffice forum, and someone reported, they didn't experience the issue on Mint 18.3. So it may be a Windows-specific issue. Steps to Reproduce: 1. Run this macro on the form's When loading or the document's Open Document event: ThisComponent.CurrentController.Frame.ContainerWindow.setPosSize(0,0,500,500,15) Actual Results: Window is not positioned to the left of the screen, there is 7 px space. Expected Results: Position the window to the left top corner of the screen. Reproducible: Always User Profile Reset: Yes Additional Info: User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/17.17134
Created attachment 142300 [details] Sets window position and size on startup
Repro. Tested by assigning in Macro organizer, Assign, Event to Open document. Already in 3.3.0 (Win 10) Version: 6.2.0.0.alpha0+ (x64) Build ID: 2c85607101e2e04e870e3b87362f39f9a9148e6c CPU threads: 4; OS: Windows 10.0; UI render: default; TinderBox: Win-x86_64@42, Branch:master, Time: 2018-06-16_00:12:37 Locale: fi-FI (fi_FI); Calc: group threaded
The bug is still present in Version: 6.2.3.2 (x64)
Dear Balint Fodor, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
The width of the window is calculated including its shadow at the left and right hand side. Hence this positioning. Idk if we should fis this or not. Code pointer: https://opengrok.libreoffice.org/xref/core/vcl/win/window/salframe.cxx?r=ce9e6972#1320 https://opengrok.libreoffice.org/xref/core/vcl/win/window/salframe.cxx?r=ce9e6972#1413
Created attachment 174191 [details] Shadow left and right of the window
IMO, not a bug since the width/height of the window is calculated using its decoration. Feel free to reopen it, if there are any concerns.