# Canvas template grid resize

**URL:** <https://forum.inductiveautomation.com/t/canvas-template-grid-resize/26745>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [July 22, 2019, 9:14am UTC](https://forum.inductiveautomation.com/t/canvas-template-grid-resize/26745 "2019-07-22T09:14:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pgmo](https://avatars.discourse-cdn.com/v4/letter/p/d07c76/32.png) [@pgmo](https://forum.inductiveautomation.com/u/pgmo)\
**Post date:** [July 22, 2019, 9:14am UTC](https://forum.inductiveautomation.com/t/canvas-template-grid-resize/26745/1 "2019-07-22T09:14:10Z")

</div>

Hi,  
I’m trying to create a 3x3 cells grid with a template canvas component, where 3 templates will be added at runtime depending on the operator’s selections.  
I ended up with the following layout  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/826aa66b5644bebffe9d16ec2fee66d081ec7f25.png)  
What I cannot solve is the grid resize: the grid created by the template canvas keeps the same width and height, no metter which size the template canvas has - desired behavior would be each cell is 33% the width and height of the canvas and each template inside keeps its original size aligning to the left or center of the cell.  
The template canvas has a `ins 0, fill, debug` _Layout Constraints_ configuration and each tamplate has its layout set to `cell col row` (I tried to had also `grow`, or `w 33%`, but with no success).

Any help is appreciated, thanks in advance

Regards

P.S.: where should I put the _row/column constraints_ I found in the MigLayout cheat sheet?

**UPDATE** :  
Partially got it to work: the problem was the _Scroll Behaviour_: must be `None`.  
Unfortunately it’s not the final solution, because my layout now appears to be

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6423f8a7201df15ddaee6f0fab63d550ec26a899.png)  
The grid is apparently aligned to the right and to the bottom of the canvas: any suggestion to correct that behavior?

**UPDATE #2** :  
If I add a template with absolute positioning in the upper left corner, it will be placed as expected (please note the yellow template in the following picture)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/7e2c6c50f04bd290053200004df5c8f8d38659bd.png)  
May be any missing parameters in the miglayout configutaion?
