# Cannot set Height to Auto

**URL:** <https://forums.fusetools.com/t/cannot-set-height-to-auto/3166>\
**Category:** Bug Reports\
**Created:** [September 12, 2016, 11:43pm UTC](https://forums.fusetools.com/t/cannot-set-height-to-auto/3166 "2016-09-12T23:43:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fahad](https://avatars.discourse-cdn.com/v4/letter/f/ecccb3/32.png) [@Fahad](https://forums.fusetools.com/u/Fahad)\
**Post date:** [September 12, 2016, 11:43pm UTC](https://forums.fusetools.com/t/cannot-set-height-to-auto/3166/1 "2016-09-12T23:43:35Z")

</div>

Fuse 0.25.1

```auto
<App>
   <Panel ux:Name="thing" Height="Auto" />
</App>

```

`Auto` doesn’t work.  
`<Change thing.Height="Auto" />` doesn’t work either

---

<div class="post-metadata">

**Author:** ![Vegard\_Strand\_Lende](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/vegard_strand_lende/32/349_2.png) [@Vegard\_Strand\_Lende](https://forums.fusetools.com/u/Vegard_Strand_Lende)\
**Post date:** [September 13, 2016, 1:55pm UTC](https://forums.fusetools.com/t/cannot-set-height-to-auto/3166/2 "2016-09-13T13:55:32Z")

</div>

Hi!

`Width` and `Height` are of type [**`Size`**](https://www.fusetools.com/docs/uno/ux/size). They cannot be set to `Auto`, however they default to `Auto` when not set

From `Size` docs

> If not specifying a value, many properties will default to Size.Auto, where the size will be computed automatically based on context.

---

<div class="post-metadata">

**Author:** ![Fahad](https://avatars.discourse-cdn.com/v4/letter/f/ecccb3/32.png) [@Fahad](https://forums.fusetools.com/u/Fahad)\
**Post date:** [September 13, 2016, 2:27pm UTC](https://forums.fusetools.com/t/cannot-set-height-to-auto/3166/3 "2016-09-13T14:27:56Z")

</div>

Hey,  
Thanks for the answer, is there a way to manually set it to Auto after changing the height to a set value?

Cheers

---

<div class="post-metadata">

**Author:** ![Edwin\_Reynoso](https://avatars.discourse-cdn.com/v4/letter/e/e99b99/32.png) [@Edwin\_Reynoso](https://forums.fusetools.com/u/Edwin_Reynoso)\
**Post date:** [September 14, 2016, 6:58am UTC](https://forums.fusetools.com/t/cannot-set-height-to-auto/3166/4 "2016-09-14T06:58:33Z")

</div>

If you need to change anything to different values interchangeably. Use `Change` in a `Trigger` instead of `Set`:

```auto
<Panel ux:Name="panel" />
<Switch ux:Name="switch" />
<WhileTrue Value="{Property switch.Value}">
  <Change Target="panel.Height" Value="50" />
</WhileTrue>

```

When the `switch` is false it’ll be `auto` again.
