# Double click to maximize view

**URL:** <https://discourse.slicer.org/t/double-click-to-maximize-view/15824>\
**Category:** Support\
**Created:** [February 3, 2021, 10:39pm UTC](https://discourse.slicer.org/t/double-click-to-maximize-view/15824 "2021-02-03T22:39:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 3, 2021, 10:39pm UTC](https://discourse.slicer.org/t/double-click-to-maximize-view/15824/1 "2021-02-03T22:39:47Z")

</div>

This OHIF feature request might be good for slicer too - any thoughts?

> <https://github.com/OHIF/Viewers/issues/2269>
>
> Hello,
> In most commercial PACS viewers you can double click an image (a single viewport) to toggle between the grid layout (eg....

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 4, 2021, 8:09pm UTC](https://discourse.slicer.org/t/double-click-to-maximize-view/15824/2 "2021-02-04T20:09:03Z")

</div>

Yes, many software makes temporary maximization of a single view easily accessible, and I agree that it would be useful to offer this in Slicer, too.

We can already add a keyboard shortcut to change the layout, but keyboard shortcuts are not easily discoverable. We could add an icon in the view controller, and maybe even associate double-click on an empty region to this function (although we already use double-click on image for resetting window/level in the “Adjust window/level” mouse mode).

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 4, 2021, 8:10pm UTC](https://discourse.slicer.org/t/double-click-to-maximize-view/15824/3 "2021-02-04T20:10:56Z")

</div>

Yes, an icon in the title bar would make sense - something like the fully screen icon in youtube.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [February 4, 2021, 8:25pm UTC](https://discourse.slicer.org/t/double-click-to-maximize-view/15824/4 "2021-02-04T20:25:03Z")

</div>

We already have an issue to track this: [Add shortcut to maximize the current/focus/active view · Issue #1409 · Slicer/Slicer · GitHub](https://github.com/Slicer/Slicer/issues/1409)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 1, 2021, 1:39pm UTC](https://discourse.slicer.org/t/double-click-to-maximize-view/15824/5 "2021-09-01T13:39:43Z")

</div>

This has now been implemented in the latest Slicer Preview Release.

---

<div class="post-metadata">

**Author:** ![ezgimercan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ezgimercan/32/4584_2.png) [@ezgimercan](https://discourse.slicer.org/u/ezgimercan)\
**Post date:** [July 16, 2024, 8:57pm UTC](https://discourse.slicer.org/t/double-click-to-maximize-view/15824/6 "2024-07-16T20:57:57Z")

</div>

Is there a way to disable this behavior with Python scripting ect? When I am interacting with 3D view, Slicer picks up my quick rotations as double click and more than once I found myself in an unwanted full screen.

P.S. You can never make everyone happy, right? I’ll probably get used to it but figure I’d ask if there is an easy way. Thanks!

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [July 17, 2024, 8:27am UTC](https://discourse.slicer.org/t/double-click-to-maximize-view/15824/7 "2024-07-17T08:27:13Z")

</div>

Please see this entry and several more below, they will serve as an example. The way to disable it will be to reroute it to an empty action (`WidgetEventNone`)  
[https://slicer.readthedocs.io/en/latest/developer\_guide/script\_repository.html#custom-shortcut-for-moving-crosshair-in-a-slice-view](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#custom-shortcut-for-moving-crosshair-in-a-slice-view)

Update: And the event will be `vtk.vtkCommand.LeftButtonDoubleClickEvent`
