Bug 160807 - LibreOffice Writer "Enter Password" dialog is not horizontally centered when opening a file with a very long filename
Summary: LibreOffice Writer "Enter Password" dialog is not horizontally centered when ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: lowest trivial
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks: Dialog
  Show dependency treegraph
 
Reported: 2024-04-24 11:35 UTC by jhertel
Modified: 2024-05-09 10:12 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
screenshot of the dialog (72.33 KB, image/jpeg)
2024-05-09 10:08 UTC, Dieter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jhertel 2024-04-24 11:35:20 UTC
Description:
When opening a password protected document in LibreOffice Writer, the password dialog is not horizontally centered in the LibreOffice window; it is noticeably to the right of the center.

The longer the filename (with path), the more misaligned the dialog is. It is as if the code, to fit the filename, only expands the width of the dialog (to the right), forgetting to also move the position of the dialog to the left by half of the increased dialog width.

Steps to Reproduce:
1. Open a password-protected LibreOffice Writer document.
2. Wait for the password dialog to appear.


Actual Results:
The center of the "Enter Password" dialog is noticeably to the right of the center of the LibreOffice window. The longer the filename (including path), the further misaligned the dialog is.

Expected Results:
The horizontal center of the dialog should be exactly at the center of the LibreOffice window, no matter the length of the file name (with path) or width of the dialog.


Reproducible: Always


User Profile Reset: No

Additional Info:
My screen resolution is 2240 x 1400, and the Windows UI scale is set to 175%.

When I set the scale to 100%, it becomes much more difficult to see whether the dialog is still misaligned with the center. 

But the cause seems simple as explained above: the width of the dialog seems to be increased to make the entire filename (with path) fit, but without changing the position of the dialog accordingly to keep it centered.


Help - About LibreOffice:

Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 12; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: da-DK
Calc: CL threaded
Comment 1 jhertel 2024-04-24 12:23:38 UTC
The issue also is also in the latest stable version, 24.2.2.2, which I just upgraded to.
Comment 2 Dieter 2024-05-09 10:08:54 UTC
Created attachment 194045 [details]
screenshot of the dialog

I confirm it with

Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded