#8668: [ShowImage] Improved zoom button behavior
--------------------------------------+----------------------------
Reporter: mmadia | Owner: leavengood
Type: enhancement | Status: new
Priority: normal | Milestone: R1
Component: Applications/ShowImage | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking: 8665
Has a Patch: 0 | Platform: All
--------------------------------------+----------------------------
Comment (by pulkomandy):
I don't like maximized windows. Keep it simple and apply the HIG rule:
"zooming a window should pick the appropriate size that fit the contents".
So:
- If your image is small enough: 1:1 and fit the window to the image
- If the image is larger than the screen: maximize, fit image to window
- If the user already changed the zoom level: preserve the user selected
zoom level, try to fit the window to the image at that zoom scale (going
maximized if it doesn't fit)
Going further:
- If the window is "zoomed" and exactly fits the picture, changing the
zoom level could automatically size the window accordingly
- However, if the window was manually resized or does not fit the image
size already, changing the zoom level should not resize the window (and
you get scrollbars)
I think this gives what the user expects in most cases?
--
Ticket URL: <https://dev.haiku-os.org/ticket/8668#comment:9>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.