sciter-sdk / pysciter

Python bindings for Sciter
https://sciter.com
MIT License
396 stars 40 forks source link

Window size on some windows starts smaller than it should #35

Open martinlombana opened 3 years ago

martinlombana commented 3 years ago

I can't reproduce it with an self program, but basically,

super().__init__(ismain=True, uni_theme=False, debug=False, size=(600, 720), resizeable=True)

It appears as 600 by 720 in my PC, running windows 10, and in another pc, running windows 10 as well, it is smaller. The project is compiled with pyinstaller, without console. And the exe is what I am testing.

I don't know what can be the culprit. Any ideas? That is pretty weird. It reminds me of the bug that @pravic corrected with the pos, but without it and random. It's a bid maddening as I have no way to reproduce it for you to test.

pravic commented 3 years ago

What's the desktop resolution and DPI on both computers?

martinlombana commented 3 years ago

Ahhh, it’s a surface pro. With high dpi. Hence the mis-alignment. How do you usually manage this situation, in order to keep a consistent size? Is there any base function in the api to detect and adjust the window size accordingly?--

pravic commented 3 years ago

Check how usciter.exe behaves on each computer. Add dpi-aware manifest to pyinstaller (if it's not added already).

Ask on sciter forum, Andrew will give more information regarding DPI support.