# Resize template canvas elements at runtime

**URL:** <https://forum.inductiveautomation.com/t/resize-template-canvas-elements-at-runtime/18128>\
**Category:** Ignition\
**Created:** [May 23, 2018, 3:32am UTC](https://forum.inductiveautomation.com/t/resize-template-canvas-elements-at-runtime/18128 "2018-05-23T03:32:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![camatt3](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@camatt3](https://forum.inductiveautomation.com/u/camatt3)\
**Post date:** [May 23, 2018, 3:32am UTC](https://forum.inductiveautomation.com/t/resize-template-canvas-elements-at-runtime/18128/1 "2018-05-23T03:32:45Z")

</div>

I have bound the “templates” property of a template canvas, using cell update binding, to adjust the width and height of a template in the canvas at runtime. My template contains ‘collapsible’ containers and I want the template canvas to show scrollbars and adjust the size of the template appropriately.  
The problem is, whenever the “templates” property (on the template canvas) changes it seems to reload the whole template again in its initial state.  
Instead of binding, I also tried “templateCanvas.templates.setValueAt(…)” in scripting, which looks like it affects the “templates” dataset but doesn’t update the template canvas visually.  
Is there a way to resize a template in the canvas without reloading the whole template?
