ImageGlass icon indicating copy to clipboard operation
ImageGlass copied to clipboard

Window fit zoom doesn't fit to 100% when scroll bar is shown

Open Elypha opened this issue 2 months ago • 0 comments

System information

  • Windows OS version: windows 11 22h2 x64
  • ImageGlass version: 9.0.11.502
  • ImageGlass release: Store / Classic? classic

To Reproduce

Steps to reproduce the behavior:

  1. enable window fit zoom
  2. select/enable auto zoom
  3. enable scroll bar for gallery
  4. open an image

Actual behavior

  • for example, the image resolution is like 500x700 and is shown on a 4k screen
  • when double click the image to open it
    • the initial zoom is randomly somewhere around 98% but not 100%
    • and there are extra margins on the sides
  • disabling the scroll bar fixes it

Expected behavior

  • the expected initial zoom should be exactly 100% if the image isn't too large to fit the screen

Screenshots / Video / Sample image file

https://github.com/d2phap/ImageGlass/assets/30290883/8c0a82ce-ad1e-4718-9d60-be523e1ea7e0

Additional context

Elypha avatar May 27 '24 23:05 Elypha