mitchcapper / KPFloatingPanel

A small floating panel / quick access tool for KeePass Entries
39 stars 5 forks source link

High DPI scaling support #14

Open iamhammer opened 5 years ago

iamhammer commented 5 years ago

Can you implement the High DPI scaling mechanics you used for Entry Templates? Right now the floating panel redraws and gets wider throughout the day. I haven't isolated what exactly the event is that causes the redraw, but it gets wider than both monitors.

Hiding and showing the floating panel again does not reduce the width, I wind up needing to close KeePass altogether.

iamhammer commented 5 years ago

After playing around a bit, it seems that whenever the display name is updated the panel is redrawn wider and the position is changed. I have two monitors of different resolutions which is throwing the math off.

Repeatedly locking the database, moving the panel, and then unlocking it is a quick way to reproduce the issue.

I think this is either happening in MainForm(), perhaps the translation methods?