# Rotate size

**URL:** <https://forums.fusetools.com/t/rotate-size/3631>\
**Category:** How-to Discussions\
**Created:** [May 11, 2016, 4:40pm UTC](https://forums.fusetools.com/t/rotate-size/3631 "2016-05-11T16:40:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![reverdin](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@reverdin](https://forums.fusetools.com/u/reverdin)\
**Post date:** [May 11, 2016, 4:40pm UTC](https://forums.fusetools.com/t/rotate-size/3631/1 "2016-05-11T16:40:17Z")

</div>

Hello,

I am trying to have a panel with an rotated image inside. Is it a way to have the panel to resize automatically.

I try to rotate a landscape image to portrait. But the panel keep the lanscape size. I could do a script to resize the panel but would know if there is another option.

Thanks

```auto
<Panel Background="#333" Margin="3">
    <Image File="...">
        <Rotation Degrees="90" />
    </Image>
</Panel>

```

---

<div class="post-metadata">

**Author:** ![COCPORN](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/cocporn/32/576_2.png) [@COCPORN](https://forums.fusetools.com/u/COCPORN)\
**Post date:** [May 11, 2016, 5:05pm UTC](https://forums.fusetools.com/t/rotate-size/3631/2 "2016-05-11T17:05:44Z")

</div>

Transforms like `Rotation` do not influence the layout of the controls, as you point out. As far as I know, there is no way to make it affect layout automatically (and I’m not sure it would totally make sense for quite a few cases, like `Move`). I think if you’re able to do it by scripting, that is probably the simplest solution.
