# frameLayout...autto resize?

**URL:** https://forum.highend3d.com/t/framelayout-autto-resize/4729
**Category:** Maya
**Tags:** mel
**Created:** [January 1, 2004, 5:12pm UTC](https://forum.highend3d.com/t/framelayout-autto-resize/4729 "2004-01-01T17:12:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![alphajoe](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/a/97f17d/32.png) [@alphajoe](https://forum.highend3d.com/u/alphajoe)
#### Post date: [January 1, 2004, 5:12pm UTC](https://forum.highend3d.com/t/framelayout-autto-resize/4729/1 "2004-01-01T17:12:44Z")

</div>

I am using the frameLayout command inside of a panel in a quad layout format. Is there a way to have the frameLayout automatically resize to the width of the pane when it is resized? Currently, without setting a width command, the frame sizes itself to the width of its widest content.

---

<div class="post-metadata">

### Author: ![\-coj](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/-/22d042/32.png) [@\-coj](https://forum.highend3d.com/u/-coj)
#### Post date: [January 1, 2004, 9:59pm UTC](https://forum.highend3d.com/t/framelayout-autto-resize/4729/2 "2004-01-01T21:59:43Z")

</div>

try adding a "columnLayout -adj 1;" as the frameLayouts parent

---

<div class="post-metadata">

### Author: ![alphajoe](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/a/97f17d/32.png) [@alphajoe](https://forum.highend3d.com/u/alphajoe)
#### Post date: [January 3, 2004, 3:36pm UTC](https://forum.highend3d.com/t/framelayout-autto-resize/4729/3 "2004-01-03T15:36:31Z")

</div>

Well, that sort of worked, the column snapped to the starting size of the panel, but it does not resize with the panel.

---

<div class="post-metadata">

### Author: ![alphajoe](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/a/97f17d/32.png) [@alphajoe](https://forum.highend3d.com/u/alphajoe)
#### Post date: [January 3, 2004, 3:45pm UTC](https://forum.highend3d.com/t/framelayout-autto-resize/4729/4 "2004-01-03T15:45:10Z")

</div>

AHA! I found it!

I was using a scrollLayout at the beginning of the panel definition and needed to add a "-cr true" so that the columns would resize. Apparently the scroll layout would fix itself to the initial panel width and not change with a resize.
