# AxisTriad() Positioning

**URL:** <https://forum.techsoft3d.com/t/axistriad-positioning/3718>\
**Category:** HOOPS Visualize Web\
**Tags:** webviewer, code\
**Created:** [May 28, 2024, 8:54pm UTC](https://forum.techsoft3d.com/t/axistriad-positioning/3718 "2024-05-28T20:54:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![michael.a.lara](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/michael.a.lara/32/1789_2.png) [@michael.a.lara](https://forum.techsoft3d.com/u/michael.a.lara)\
**Post date:** [May 28, 2024, 8:54pm UTC](https://forum.techsoft3d.com/t/axistriad-positioning/3718/1 "2024-05-28T20:54:28Z")

</div>

Hello all,

I have a question about “communicator.webviewer.view.GetAxisTriad()”. When using “.setAnchor(2)” to put in the bottom right corner, looks like when camera moves the axis looks rotates a bit off screen.

Is there a way to set where I want the axis without “setAnchor()” or would I have to use a separate x,y,z axis for better control?

---

<div class="post-metadata">

**Author:** ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)\
**Post date:** [May 28, 2024, 9:39pm UTC](https://forum.techsoft3d.com/t/axistriad-positioning/3718/2 "2024-05-28T21:39:11Z")

</div>

Hello @michael.a.lara,

Welcome to the forum!

As a quick check, when I run:  
`hwv.view.getAxisTriad().setAnchor(Communicator.OverlayAnchor.LowerRightCorner);`

…I don’t notice the triad moving offscreen – so it stays within the bounds of the canvas when manipulating the camera:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/f/f342413cff6ce9724642b3897b8de106eb4aee60.png)

As far as setting the position of the AxisTriad, it is limited to the nine sections specified in the [OverlayAnchor](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/enum/Communicator.OverlayAnchor.html#overlayanchor) enum.

Thanks,  
Tino

---

<div class="post-metadata">

**Author:** ![michael.a.lara](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/michael.a.lara/32/1789_2.png) [@michael.a.lara](https://forum.techsoft3d.com/u/michael.a.lara)\
**Post date:** [May 28, 2024, 10:04pm UTC](https://forum.techsoft3d.com/t/axistriad-positioning/3718/3 "2024-05-28T22:04:18Z")

</div>

Hi @tino ,

 ![image](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/c/cc49aa971afe39b23c0354905ba7ebb375b876bb.png)

here you can see it moves off page, guessing it could have something due to the sizing?

Thanks,  
Michael

---

<div class="post-metadata">

**Author:** ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)\
**Post date:** [May 28, 2024, 10:51pm UTC](https://forum.techsoft3d.com/t/axistriad-positioning/3718/4 "2024-05-28T22:51:25Z")

</div>

I’ve tried resizing the window and I’m not able to get the taskbar to occlude the Web Viewer canvas similar to your pic. If I set the taskbar to automatically hide and thus lose some bottom “padding”, then a very small part of the cylindrical arrows is occluded by the taskbar. But not to the extent as in your pic. In all my tests, the window in question is in “snapped” mode.

Are you using a monitor in portrait view? Also, you had specifically mentioned using `LowerRightCorner` for the location of the AxisTriad. Are you getting the same issue when using `LowerLeftCorner`?

Thanks,  
Tino

---

<div class="post-metadata">

**Author:** ![michael.a.lara](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/michael.a.lara/32/1789_2.png) [@michael.a.lara](https://forum.techsoft3d.com/u/michael.a.lara)\
**Post date:** [May 28, 2024, 11:06pm UTC](https://forum.techsoft3d.com/t/axistriad-positioning/3718/5 "2024-05-28T23:06:51Z")

</div>

@tino No my monitor is in Landscape and same issue in the LowerLeftCorner

 ![image](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/2X/d/de41bcdc233d6e463c70f8874562bce9546de6c1.png)  
I do have a Portrait monitor I tested, that’s only time the axis does not go off screen

---

<div class="post-metadata">

**Author:** ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)\
**Post date:** [May 29, 2024, 12:10am UTC](https://forum.techsoft3d.com/t/axistriad-positioning/3718/6 "2024-05-29T00:10:22Z")

</div>

@michael.a.lara  
The issue could be that the viewer container is larger than the size of the monitor. You should be able to confirm the size of the viewer container, for example using arbitrary values:

```auto
#my_viewer {
        width: 640px;
        height: 480px;
        position: relative;
		border: 2px solid black;
      }

```

Using the `border` property should be able to quickly confirm an “oversized” viewer container.

---

<div class="post-metadata">

**Author:** ![michael.a.lara](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/michael.a.lara/32/1789_2.png) [@michael.a.lara](https://forum.techsoft3d.com/u/michael.a.lara)\
**Post date:** [May 29, 2024, 3:47pm UTC](https://forum.techsoft3d.com/t/axistriad-positioning/3718/7 "2024-05-29T15:47:36Z")

</div>

Thank you, changing the size of the container worked
