Hi,
I'm with this problem, I can't solve.
I store the properties of the Form with JSONPropStorage. I store left, top, width and height.
I'm using Lazarus trunk, and I set Use LCL Scaling (hi-dpi) to true in the options.
The problem is that every time I open the window, it gets bigger.
As I understand the problem, it loads the stored values and then scales it. The next time does the same, loads the stored values and scales them.
How I can prevent this to happen?
I've set the properties to store (left, top, width, height) with the object inspector (SessionProperties).
I don't know how I can solve it. The DPI can be changed also, I'm running now at 120%, but when I switch to another mode for any reason, It will stop working as well.