NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 24 - keyboard shortcuts for zoom-in and zoom-out
keyboard shortcuts for zoom-in and zoom-out
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: ImageJ1
unspecified
PC Linux
: P2 normal
Assigned To: Albert Cardona
Depends on:
Blocks:
 
Reported: 2008-11-26 14:28 CST by Mark Longair
Modified: 2009-04-21 19:20 CDT
0 users

See Also:

Description Mark Longair 2008-11-26 14:28:45 CST
(This is mostly to test that new bug reports go to the list, but it is
something that vaguely annoys me that I don't currently have time
to investigate. :))

If you use the "+" or "-" keys to adjust the zoom level in ImageJA or
mageJ the window is not resized to accommodate the image, but if one
selects the zoom tool by mouse and clicks in the image then the window
is helpfully resized and rearranged.  The latter behaviour should also
result from using the keyboard shortcuts.

Steps to reproduce:

  - File > Open Samples > Blobs
  - Press '+' repeatedly: note that the image window stays the same size
  - Close the image window
  - File > Open Samples > Blobs
  - Select the zoom tool from the toolbar
  - Click repeatedly in the image, note that the window is enlarged for
    the first couple of clicks.
Comment 1 Jean-Yves Tinevez 2009-03-16 10:14:31 CDT
(In reply to comment #0)
> If you use the "+" or "-" keys to adjust the zoom level in ImageJA or
> mageJ the window is not resized to accommodate the image, but if one
> selects the zoom tool by mouse and clicks in the image then the window
> is helpfully resized and rearranged.  The latter behaviour should also
> result from using the keyboard shortcuts.

This is incorrect for ImageJ @ MacOSX.
The window resizes itself correctly (up of course to a certain size) when the keys are used. However:
- speaking for MaxOSX at least
- this works ONLY if the window is in the first screen if you have ore than one. If you happen to have dual screen and put the image in the second one, then the image is not resized.  

I suspect the two issue (not at all in linux and only in main screen in MacOSX) are linked.
Comment 2 Mark Longair 2009-04-21 19:20:47 CDT
I asked Wayne Rasband about this, and he explained that this behaviour is due to a feature of ImageJ that holding down the "Shift" key suppresses automatic window resizing.  I had always assumed that one needed the "Shift" key as well as "=" to zoom in, but it turns out that "=" works on its own.

So, the workaround for the moment is not to use "Shift" with "=".  For the longer term, Wayne tells me that in the next daily build "Control" will suppress resizing instead.

I'm closing this bug as fixed now :)