# Auto zoom designated place

**URL:** <https://forum.inductiveautomation.com/t/auto-zoom-designated-place/75129>\
**Category:** Ignition\
**Tags:** ignition81, perspective, scripting\
**Created:** [June 16, 2023, 9:23am UTC](https://forum.inductiveautomation.com/t/auto-zoom-designated-place/75129 "2023-06-16T09:23:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adarsh\_K](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@Adarsh\_K](https://forum.inductiveautomation.com/u/Adarsh_K)\
**Post date:** [June 16, 2023, 9:23am UTC](https://forum.inductiveautomation.com/t/auto-zoom-designated-place/75129/1 "2023-06-16T09:23:57Z")

</div>

Hi I need to pan the screen to designated place in screen and zoom in that component on button click . Do we have any feasibility to do this using ignition scripting capability?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 16, 2023, 9:31am UTC](https://forum.inductiveautomation.com/t/auto-zoom-designated-place/75129/2 "2023-06-16T09:31:30Z")

</div>

you can try with using focus() on the element you want to center...  
if that doesnt work you'll have to use jsinjection i guess

---

<div class="post-metadata">

**Author:** ![Chris\_Taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/chris_taylor/32/3315_2.png) [@Chris\_Taylor](https://forum.inductiveautomation.com/u/Chris_Taylor)\
**Post date:** [June 17, 2023, 12:10pm UTC](https://forum.inductiveautomation.com/t/auto-zoom-designated-place/75129/3 "2023-06-17T12:10:31Z")

</div>

This may be of interest

> [@Pan Zoom Container](https://forum.inductiveautomation.com/t/pan-zoom-container/75093):
>
> BIJC is pleased to announce its latest module, a Pan Zoom container for Perspective. There have been a number of outstanding examples of Pan Zoom using an XY container but these are very specific and generally require advanced scripting and CSS skills. BIJC container simplifies this process and allows the XY container to be responsive. In its simplest deployment, a developed XY container can be placed inside BIJCs Pan Zoom container and it will automatically fit to any screen size. If the deve…
