# Orient template-components based on template size in window

**URL:** <https://forum.inductiveautomation.com/t/orient-template-components-based-on-template-size-in-window/87014>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [March 8, 2024, 9:19am UTC](https://forum.inductiveautomation.com/t/orient-template-components-based-on-template-size-in-window/87014 "2024-03-08T09:19:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Remco\_Geervliet](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@Remco\_Geervliet](https://forum.inductiveautomation.com/u/Remco_Geervliet)\
**Post date:** [March 8, 2024, 9:19am UTC](https://forum.inductiveautomation.com/t/orient-template-components-based-on-template-size-in-window/87014/1 "2024-03-08T09:19:21Z")

</div>

I feel like this should be possible, but I can't seem to get it working.

My end-goal is to have an arrow inside a template change it's angle by 90 degrees based on the length-width dimensions of the template it's part of. As this template is meant to be resizable, it's configured as a square. When it's used in a window I will resize it to either a width\>height or height\>width rectangle. I can't seem to find a trigger inside the template that is fired when the in-window template is resized.

I have tried:

- Using the width-height properties of the base-template, but these don't change when the in-window template is resized.
- Using a 'property changed' trigger on the base-template's width or height property. Probably because of the same reasons as the previous point.
- Using a 'property changed' trigger on a component that's set to fill the template, hoping this would be treated differently.

I'm thinking a script on the in-window template might work, but that defeats the purpose of the template - having to add a script to every template.

Eager to hear ideas on how to get this to work. Worst comes to worst I'll just have to add a property to determine the orientation of the arrow, but I feel this should be possible and I don't like manually setting properties when it's not necessary.
