# View Canvas - precisely place center of embedded view?

**URL:** <https://forum.inductiveautomation.com/t/view-canvas-precisely-place-center-of-embedded-view/91036>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 28, 2024, 8:26pm UTC](https://forum.inductiveautomation.com/t/view-canvas-precisely-place-center-of-embedded-view/91036 "2024-05-28T20:26:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![msteele](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/msteele/32/77889_2.png) [@msteele](https://forum.inductiveautomation.com/u/msteele)\
**Post date:** [June 18, 2024, 2:44pm UTC](https://forum.inductiveautomation.com/t/view-canvas-precisely-place-center-of-embedded-view/91036/2 "2024-06-18T14:44:20Z")

</div>

Yes, it can be done with a style, `transform: translate(X,Y)`:

> [@Embedded views vs view canvas: clipping css translated transforms](https://forum.inductiveautomation.com/t/embedded-views-vs-view-canvas-clipping-css-translated-transforms/91988/2):
>
> More forum sleuthing makes me think it's a manifestation of bug [IGN-9406] as described by @cmallonee here [[IGN-9406] Scroll-bar/Overflow Frustrations on Perspective View Canvas - #9 by cmallonee](https://forum.inductiveautomation.com/t/ign-9406-scroll-bar-overflow-frustrations-on-perspective-view-canvas/86998/9)

Yes, it requires overriding `overflow: visible` inside a stylesheet due to this bug:

> [@\[IGN-9406\] Scroll-bar/Overflow Frustrations on Perspective View Canvas](https://forum.inductiveautomation.com/t/ign-9406-scroll-bar-overflow-frustrations-on-perspective-view-canvas/86998/9):
>
> Ah, I see the issue now. Bad news: Yep, it appears to be a bug, in that we're applying ViewCanvas.props.instances[X].style.overflow to the container which is the root of the instanced View instead of properly applying that overflow to the wrapping \<div\>. Good news: I have a one-off workaround. Apply a domId property to the META category of your ViewCanvas, and supply some unique value ("MyViewCanvas" in the upcoming example). Now modify your stylesheet a bit: div#MyViewCanvas \> div { overf…

No, I'm not sure it's worth it. I may just define the offset from 0,0 to the center of my icon inside documentation and can adjust position on instantiation.

---

_[View the full topic](https://forum.inductiveautomation.com/t/view-canvas-precisely-place-center-of-embedded-view/91036)._
