# How to adjust the width of the "module panel"

**URL:** <https://discourse.slicer.org/t/how-to-adjust-the-width-of-the-module-panel/15759>\
**Category:** Development\
**Tags:** gui\
**Created:** [February 1, 2021, 12:55am UTC](https://discourse.slicer.org/t/how-to-adjust-the-width-of-the-module-panel/15759 "2021-02-01T00:55:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tesla2678](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tesla2678/32/9062_2.png) [@Tesla2678](https://discourse.slicer.org/u/Tesla2678)\
**Post date:** [February 1, 2021, 12:55am UTC](https://discourse.slicer.org/t/how-to-adjust-the-width-of-the-module-panel/15759/1 "2021-02-01T00:55:44Z")

</div>

How to adjust the width of the “module panel” by code?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/c/ecedc6c5cb82f542d89d713c6c4a2ba4e135ac81.png)

Problem: After some custom widgets were added in the “module panel”, a white space generated beside the “module panel”. how to adjust it by code?

Thank you!
