# Adjust Templates in Repeater

**URL:** <https://forum.inductiveautomation.com/t/adjust-templates-in-repeater/9330>\
**Category:** Ignition\
**Created:** [November 12, 2014, 9:28pm UTC](https://forum.inductiveautomation.com/t/adjust-templates-in-repeater/9330 "2014-11-12T21:28:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rdeavers](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@rdeavers](https://forum.inductiveautomation.com/u/rdeavers)\
**Post date:** [November 12, 2014, 9:28pm UTC](https://forum.inductiveautomation.com/t/adjust-templates-in-repeater/9330/1 "2014-11-12T21:28:25Z")

</div>

I’m trying to change the size of each template in a repeater. For example, I want the first template to be 50 pixels, the next template to be 30, and so on. I’ve added a Template Parameter called compHeight and, since there is no way to directly change the height at runtime, I added this script in the propertyChange event on the template:

`if event.propertyName == 'compHeight':
	system.gui.resizeComponent(event.source, 400, event.newValue)`

I also added ‘compHeight’ to my Template Parameters table where my repeater resides. Is what I’m doing even possible?

Thanks

---

<div class="post-metadata">

**Author:** ![rdeavers](https://avatars.discourse-cdn.com/v4/letter/r/779978/32.png) [@rdeavers](https://forum.inductiveautomation.com/u/rdeavers)\
**Post date:** [November 12, 2014, 9:39pm UTC](https://forum.inductiveautomation.com/t/adjust-templates-in-repeater/9330/2 "2014-11-12T21:39:38Z")

</div>

I actually tried to change the Template Parameters table during runtime and I get the following error. I assume since it is a Template and not a single container. Is there a workaround?

[quote]Null Pointer Exception  
Component is not a standard container[/quote]
