# Template behavior at the border

**URL:** <https://forum.inductiveautomation.com/t/template-behavior-at-the-border/17065>\
**Category:** Ignition\
**Created:** [February 20, 2018, 11:25pm UTC](https://forum.inductiveautomation.com/t/template-behavior-at-the-border/17065 "2018-02-20T23:25:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MCC](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@MCC](https://forum.inductiveautomation.com/u/MCC)\
**Post date:** [February 20, 2018, 11:25pm UTC](https://forum.inductiveautomation.com/t/template-behavior-at-the-border/17065/1 "2018-02-20T23:25:13Z")

</div>

Using v7.9.6, I am noticing an anomaly in graphic behavior of templates at the edge of the template.

If I have a template that has a line along one edge that is anchored top, bottom and left and then stack a several of these templates together, I get a seamless line along the left of the stack as expected. If, however, I embed this template in another template and I anchor the embedded template as well and then stack several instances of the nested template, I get a 1 pixel gap in my line even though both templates are set to border = none, both templates are the same height, the line in the embedded template is the same height as both templates. Is there a workaround to this or can I just not have my border line nested inside an embedded template?

Thanks for any input.

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [February 21, 2018, 9:04am UTC](https://forum.inductiveautomation.com/t/template-behavior-at-the-border/17065/2 "2018-02-21T09:04:33Z")

</div>

Did you “Enable Layout” in your templates? Without that option, the elements of the templates don’t respect anchoring.

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/475292dfe5d386f4ed686bd6eee2ade4443c1271.png)

---

<div class="post-metadata">

**Author:** ![MCC](https://avatars.discourse-cdn.com/v4/letter/m/3e96dc/32.png) [@MCC](https://forum.inductiveautomation.com/u/MCC)\
**Post date:** [February 21, 2018, 7:32pm UTC](https://forum.inductiveautomation.com/t/template-behavior-at-the-border/17065/3 "2018-02-21T19:32:21Z")

</div>

Thanks for the reply. Yes, Enable Layout is checked for both the nested and parent templates.

Cheers!
