Ruben2776 / PicView

Fast, free and customizable image viewer for Windows 10 and 11.
https://picview.org
Other
939 stars 63 forks source link

PicView seems having trouble to find the central point #143

Closed MononeV closed 3 months ago

MononeV commented 3 months ago

Describe the bug Hi, there. I just got to know this project few days ago, and I'm having some issues with the window position. After some tests, I'm thinking it might be something related to the center detection.

To Reproduce There are couple of situations:

  1. When 'auto fit window' set to on, the window position is random when changing between pictures.

https://github.com/Ruben2776/PicView/assets/39477101/ceb0b7ad-3357-456b-b96f-273e372df247

  1. When 'auto fit window' set to off, the window position is fixed, but press space would make it off-screen.

https://github.com/Ruben2776/PicView/assets/39477101/27ea77da-68ae-4e0b-81b6-e3ea6a3afba7

  1. Press F11 at anytime would make the window maximum, but also off-screen.

https://github.com/Ruben2776/PicView/assets/39477101/fd36448f-a281-4551-b1e0-f93c5c82f558

Expected behavior I'm running Windows 11 at 1080p with 100% scale so there should be no problem with my setup.

Heart1010 commented 3 months ago

Has this anything todo with my "small problem"? PicView always starts at this postition on my win10 pc - why?! The bottom part is always out of the view 🤔

And yes, it's still the same with newest v2.2.4

2024-03-28_Screenshot_3752

Ruben2776 commented 3 months ago

@MononeV I've made the changes to version 2.2.4

Ruben2776 commented 3 months ago

@Heart1010 I'll take a look at your issue

MononeV commented 3 months ago

@MononeV I've made the changes to version 2.2.4

I can confirm that the issues have been fixed. Many thanks, feel free to close the issue.