# Template repeater content resizing

**URL:** <https://forum.inductiveautomation.com/t/template-repeater-content-resizing/9580>\
**Category:** Ignition\
**Created:** [January 21, 2015, 10:57am UTC](https://forum.inductiveautomation.com/t/template-repeater-content-resizing/9580 "2015-01-21T10:57:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![javier.arena1](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@javier.arena1](https://forum.inductiveautomation.com/u/javier.arena1)\
**Post date:** [January 21, 2015, 10:57am UTC](https://forum.inductiveautomation.com/t/template-repeater-content-resizing/9580/1 "2015-01-21T10:57:56Z")

</div>

Hi,

Is there any way to make a template repeater resize its contained elements when the parent windows is resized? By default, it just shows a scrollbar, so some of its elements disappear when making the window smaller. Our customer is complaining a lot about this.

Thanks,  
Javier

---

<div class="post-metadata">

**Author:** ![javier.arena1](https://avatars.discourse-cdn.com/v4/letter/j/258eb7/32.png) [@javier.arena1](https://forum.inductiveautomation.com/u/javier.arena1)\
**Post date:** [January 21, 2015, 12:43pm UTC](https://forum.inductiveautomation.com/t/template-repeater-content-resizing/9580/2 "2015-01-21T12:43:15Z")

</div>

Also found that when trying to use the function “system.gui.resizeComponent()” on the contained elements, I get the exception “Component is not in a standard container”

Any thoughts?

Thanks,  
Javier

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [January 21, 2015, 9:08pm UTC](https://forum.inductiveautomation.com/t/template-repeater-content-resizing/9580/3 "2015-01-21T21:08:51Z")

</div>

I don’t think there is a way to resize the templates in the Template Repeater.

I had the same problem and my solution was to the replace the Template Repeater with the Template Canvas. With the Template Canvas the height and width of each template can be specified. I adjusted the height and width of each template based on the width and height of the window they are in.

I also added a [ComponentListener](http://docs.oracle.com/javase/7/docs/api/java/awt/event/ComponentListener.html) to the root container of the window, so that when the window resized the templates in the Template Canvas also resized. I only implemented the “componentResized” method of the ComponentListener.

Best,
