# Best way of fitting an embedded view to an object?

**URL:** <https://forum.inductiveautomation.com/t/best-way-of-fitting-an-embedded-view-to-an-object/92984>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [July 9, 2024, 9:55pm UTC](https://forum.inductiveautomation.com/t/best-way-of-fitting-an-embedded-view-to-an-object/92984 "2024-07-09T21:55:31Z")\
**Posts on this page:** 1\
**Showing post:** 9

<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:** [July 10, 2024, 1:23pm UTC](https://forum.inductiveautomation.com/t/best-way-of-fitting-an-embedded-view-to-an-object/92984/9 "2024-07-10T13:23:24Z")

</div>

You can set coordinate container to percentage  
Or if you keep it fixed you can set the x/y to use "100%"  
Or something more advanced with calcs...  
There is also "auto" or "fit-content" though those sometimes have issues with svgs

> [@Coordinate Container Aspect Ratio Always Scale Using Width](https://forum.inductiveautomation.com/t/coordinate-container-aspect-ratio-always-scale-using-width/68265/6):
>
> you do not change the default size of the root... only set it to fixed you have to change ALL the components sizes Its gonna be quite a lot of work to do this ^^ you can do x and y also like this

---

_[View the full topic](https://forum.inductiveautomation.com/t/best-way-of-fitting-an-embedded-view-to-an-object/92984)._
