# Dynamic scaling components

**URL:** <https://forum.inductiveautomation.com/t/dynamic-scaling-components/15885>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [November 5, 2017, 3:36pm UTC](https://forum.inductiveautomation.com/t/dynamic-scaling-components/15885 "2017-11-05T15:36:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lyhkch](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lyhkch/32/9381_2.png) [@lyhkch](https://forum.inductiveautomation.com/u/lyhkch)\
**Post date:** [November 5, 2017, 3:36pm UTC](https://forum.inductiveautomation.com/t/dynamic-scaling-components/15885/1 "2017-11-05T15:36:02Z")

</div>

Hi , I want to Dynamically control Template zoom, but do not want to change the size of some buttons, boxes in the Template. So how can I do ?

system.gui.transform(component=event.source.parent.getComponent(‘Template\_Alarm’),newX=0,newY=166,duration=100, newWidth=1086, newHeight=614)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 6, 2017, 4:08pm UTC](https://forum.inductiveautomation.com/t/dynamic-scaling-components/15885/2 "2017-11-06T16:08:55Z")

</div>

If you enable layout in the template settings, then set the components you don’t want to resize to an anchored layout, they will reposition but not change actual size when the template itself resizes.

---

<div class="post-metadata">

**Author:** ![lyhkch](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lyhkch/32/9381_2.png) [@lyhkch](https://forum.inductiveautomation.com/u/lyhkch)\
**Post date:** [November 6, 2017, 5:21pm UTC](https://forum.inductiveautomation.com/t/dynamic-scaling-components/15885/3 "2017-11-06T17:21:59Z")

</div>

Thank you ! Another question : How can I get component property such as width, Height
