Menu

#2247 Window size increase with each start

KeePass_2.x
closed
nobody
None
5
2023-11-04
2023-05-07
Dirk
No

I use KeePass 2.53.1 with Linux MINT 21. The window is opened at the desired position (right edge on the right display edge), but the window size increases with every start. In the config file ~/.config/KeePass/KeePass.config.xml, the line <width> in <mainwindow> is increased after closing KeePass2. For example, I start the size with 405, the next time it is 462, followed by 527, 601, 686, 783, ....
The same applies to the height.
i never had such effects with Microsoft Windows.</mainwindow></width>

Discussion

  • Paul

    Paul - 2023-05-08

    This will probably be an aberration in mono.
    Set the sizes manually in an enforced config file to stop them moving.
    https://keepass.info/help/base/configuration.html

    cheers, Paul

     
  • Dirk

    Dirk - 2023-05-08

    Thank's, this works perfectly.

     
  • Michael Brooks

    Michael Brooks - 2023-06-05

    I also see this on Ubuntu 22.04.2 LTS with KeePass 2.54. See https://sourceforge.net/p/keepass/discussion/329221/thread/8ac0ea8ab7/?limit=25#94cd (apologies, I didn't find this bug until after I'd opened the discussion thread). The workaround using the enforced config file is working.

     
  • Dominik Reichl

    Dominik Reichl - 2023-11-04
    • status: open --> closed
     
  • Dominik Reichl

    Dominik Reichl - 2023-11-04

    Thanks for reporting this issue!

    It seems to be caused by a bug in Mono. Since version 2.51, KeePass suspends the layout logic for the main window during its initialization and resumes it at the end (in order to avoid unnecessary layout computations). This works fine with .NET/Windows, but Mono changes the size of the main window.

    I've now added a workaround: when running on Mono, KeePass now does not suspend/resume the layout logic for the main window anymore. So, the main window initialization is slightly slower on Mono again, but the size remains correct.

    Here's the latest development snapshot for testing:
    https://keepass.info/filepool/KeePass_231104.zip

    Thanks and best regards,
    Dominik

     

Log in to post a comment.

MongoDB Logo MongoDB