# Vision - window alignment

**URL:** <https://forum.inductiveautomation.com/t/vision-window-alignment/55311>\
**Category:** Ignition\
**Created:** [January 24, 2022, 3:55pm UTC](https://forum.inductiveautomation.com/t/vision-window-alignment/55311 "2022-01-24T15:55:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![edevald](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/edevald/32/30531_2.png) [@edevald](https://forum.inductiveautomation.com/u/edevald)\
**Post date:** [January 24, 2022, 3:55pm UTC](https://forum.inductiveautomation.com/t/vision-window-alignment/55311/1 "2022-01-24T15:55:27Z")

</div>

Good afternoon.

I’m trying to resize a window dynamically when pressing a button.

The resizing part is ok, but when I resize it, the container pushes its content to the right side.

How can I remove the green blank space between the window left edge and the content?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/3/237613858b46e71d47306d9b9474d46eab32519f.png)

My button code is (mouse pressed event):

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/2/0202507c8df0deff784aec6d15adb4d9e18ba08e.png)

Thanks.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [January 24, 2022, 10:55pm UTC](https://forum.inductiveautomation.com/t/vision-window-alignment/55311/2 "2022-01-24T22:55:21Z")

</div>

Check your container’s layout configuration. Relative Leading will make it stick to the the left side, but you will need to select which ever configuration works for you.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/f/4f4579ee3626f9dc74187782a11bdee9044377d9.png)
