# Set minimum view width/height in a layout

**URL:** <https://discourse.slicer.org/t/set-minimum-view-width-height-in-a-layout/16467>\
**Category:** Development\
**Created:** [March 10, 2021, 11:50am UTC](https://discourse.slicer.org/t/set-minimum-view-width-height-in-a-layout/16467 "2021-03-10T11:50:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![riep](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/riep/32/9933_2.png) [@riep](https://discourse.slicer.org/u/riep)\
**Post date:** [March 10, 2021, 3:22pm UTC](https://discourse.slicer.org/t/set-minimum-view-width-height-in-a-layout/16467/2 "2021-03-10T15:22:50Z")

</div>

Probably not possible as of now

> [@Slice widget size in custom layouts](https://discourse.slicer.org/t/slice-widget-size-in-custom-layouts/2406):
>
> [custom-layout]I’m trying to change slice view sizes as part of the setup of a custom layout. For instance: def formatCustomLayout(self): customLayout = ( XML code ) layoutNode = slicer.app.layoutManager().layoutLogic().GetLayoutNode() customLayoutId = 500 layoutNode.AddLayoutDescription(customLayoutId, customLayout) slicer.app.layoutManager().setLayout(customLayoutId) slicer.app.layoutManager().sliceWidget('Long2').mrmlSliceNode().SetDimensions(100, 100, 1) #end format…

---

_[View the full topic](https://discourse.slicer.org/t/set-minimum-view-width-height-in-a-layout/16467)._
