# Anchored Template Layout - Changing Template Size

**URL:** <https://forum.inductiveautomation.com/t/anchored-template-layout-changing-template-size/79594>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [September 25, 2023, 4:23pm UTC](https://forum.inductiveautomation.com/t/anchored-template-layout-changing-template-size/79594 "2023-09-25T16:23:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [September 25, 2023, 4:23pm UTC](https://forum.inductiveautomation.com/t/anchored-template-layout-changing-template-size/79594/1 "2023-09-25T16:23:12Z")

</div>

I have this template that has a couple of rows of components, anchored horizontally that stretch to fill the width of the template.

When I use the template editor sizing handles to make it narrow, the template itself looks fine, but the instances don't look the same - even after reverting to the master size.

initial width 440:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/3/8341e687e87b7fbc234da9eb1501c104dcad2453.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/e/3ec0a3f2ee58fd23294aa548b286b49256cacc37.png)

new width 417:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/d/adefb99fc5f96e14ca9a567bf96674e798ca4ce4.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/d/4d7a6280a82d1bc261f11923c27b7db6f342e5cd.png) ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/5/25d824cf5cba8b0310198dc346071e5c5c542fce.png)

I don't understand why it behaves this way, even at the master template size when the master template looks fine.

And then changing it at the window level, instead of the master template level, it looks as I would expect, but I actually want to change the template size so that I don't have to resize it every time

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 25, 2023, 8:33pm UTC](https://forum.inductiveautomation.com/t/anchored-template-layout-changing-template-size/79594/2 "2023-09-25T20:33:55Z")

</div>

Do your instances in your windows also have anchored layout?

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [September 25, 2023, 8:35pm UTC](https://forum.inductiveautomation.com/t/anchored-template-layout-changing-template-size/79594/3 "2023-09-25T20:35:34Z")

</div>

No

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [September 25, 2023, 8:50pm UTC](https://forum.inductiveautomation.com/t/anchored-template-layout-changing-template-size/79594/4 "2023-09-25T20:50:23Z")

</div>

I wouldn't expect anchored to work without both definition and instance set.

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [September 25, 2023, 8:56pm UTC](https://forum.inductiveautomation.com/t/anchored-template-layout-changing-template-size/79594/5 "2023-09-25T20:56:29Z")

</div>

Not sure what you mean by "both set." The anchored layout in the template sets the layout for the components inside the template. Anchored layout for the instance would set the layout for the instance of the template inside the window - which I do not want anchored.

The anchoring works as expected as I change the width of the instance.
