Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window fit + zooming doesn't change window size #822

Closed
zEdS15B3GCwq opened this issue Jul 13, 2020 · 9 comments
Closed

window fit + zooming doesn't change window size #822

zEdS15B3GCwq opened this issue Jul 13, 2020 · 9 comments

Comments

@zEdS15B3GCwq
Copy link

System information:

  • Windows OS version: Win 10 x64 1909
  • ImageGlass version: 7.6.4.30

To Reproduce

Steps to reproduce the behavior:

  1. enable "window fit" behaviour
  2. open image, window fits image size as expected
  3. zoom in

Actual behavior:

Zooming in an image doesn't update window size to fit the new image size.

Expected behavior:

Zooming in should update the window size, up until the window has room to grow. The current behaviour is not particularly useful nor is it reasonable - window fit shouldn't mean to only fit original size.

Screenshots:

I think the description should be enough.

Additional context:

@d2phap
Copy link
Owner

d2phap commented Jul 13, 2020

It's design to work like this. Changed label

@zEdS15B3GCwq
Copy link
Author

zEdS15B3GCwq commented Jul 13, 2020

OK, thanks for the reply. I understand if it's working as designed, however, at least in my opinion, "window fit" suggests that the window fits the size of the image in general, and not just when the image was opened. The current way of operation seems counter-intuitive. Opening a smallish image and zooming in to see details, I would expect the window to grow with the size of the image, instead of just keeping the window size and showing a small patch of the enlarged image.

Just to clear up any possible misunderstanding, I mean "window fit" and not "scale to fit", where the image scales to fit the window size.

@SylwesterZarebski
Copy link

I confirm. Zooming with Window fit option set should re-fit window to new image size.

@lyaaz
Copy link

lyaaz commented Dec 27, 2020

yeah, hope to add this feature too. Option to fit window to image size while zoom image or at least a hotkey to do this manually.

@mmuffins
Copy link

mmuffins commented May 26, 2021

I agree, auto-fitting the window to the image size makes prevents having to constantly manually adjust the window size when zooming in and out a lot. For reference, see the following video:

jpegview.mp4

The application used in the video is jpegview.

@SylwesterZarebski
Copy link

Is there any chance to code this in some foreseeable future? This is serious showstopper in my typical usage.

@SylwesterZarebski
Copy link

SylwesterZarebski commented Jan 20, 2022

I've coded PR to fix this issue. Please review and possibly merge, thanks :-).

@SylwesterZarebski
Copy link

PS. I've also made PR #1241 to make Window fit more useful.

d2phap added a commit that referenced this issue Jan 27, 2022
 Fix issue #822 (window fit + zooming doesn't change window size)
@d2phap d2phap added this to the v8.5 milestone Jan 27, 2022
@SylwesterZarebski
Copy link

Thanks a lot :-).

@d2phap
Copy link
Owner

d2phap commented Jan 27, 2022

Shipped this to the latest build of IG Moon: https://imageglass.org/moon

@d2phap d2phap closed this as completed May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants