# Anchors and "Slot to canvas slot"

**URL:** <https://forums.unrealengine.com/t/anchors-and-slot-to-canvas-slot/2516883>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [May 18, 2025, 5:54pm UTC](https://forums.unrealengine.com/t/anchors-and-slot-to-canvas-slot/2516883 "2025-05-18T17:54:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fugra](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fugra](https://forums.unrealengine.com/u/Fugra)\
**Post date:** [May 18, 2025, 5:54pm UTC](https://forums.unrealengine.com/t/anchors-and-slot-to-canvas-slot/2516883/1 "2025-05-18T17:54:13Z")

</div>

So i have some questions about using anchors and retrieving size / position from the canvas.

Im useing:

 ![Screenshot 2025-05-18 134834](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/3/253e4e41f7d6678830bf9ff368dce06c596210fb.png)  
 ![Screenshot 2025-05-18 135229](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/e/c4e9ab44a08e2fe670df023d3985ef89037e92d1.png)

my canvas is setup like this:

 ![Screenshot 2025-05-18 134922](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/f/4/2f44b6326c42613a22e5c9c6848fbb71d35f7368.png)  
 ![Screenshot 2025-05-18 135002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/3/973acd2de8c7d7f4ee2222ab854c25590dcd558d.png)

but when i use my anchor like this:

 ![Screenshot 2025-05-18 135110](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/2/c/22c28111708892c7a26dd83a76747ee9c1dd3f3a.png)

it doesnt give me top right position anymore :o.

my questions are:

Is there a way to get top right position and use anchors properly spread out so i can auto resize my window?

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [May 18, 2025, 6:21pm UTC](https://forums.unrealengine.com/t/anchors-and-slot-to-canvas-slot/2516883/2 "2025-05-18T18:21:48Z")

</div>

When you use anchors as fill, it doesn’t have to give you the top right position anymore since your top right position will be always 0.0. Its anchored as fill.

TopRight will be 0,0 and bottom right will be whatever your viewport size is 🙂

Not sure what you doing but you can always wrap an element with another element like overlay.

---

<div class="post-metadata">

**Author:** ![Fugra](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fugra](https://forums.unrealengine.com/u/Fugra)\
**Post date:** [May 18, 2025, 6:39pm UTC](https://forums.unrealengine.com/t/anchors-and-slot-to-canvas-slot/2516883/3 "2025-05-18T18:39:12Z")

</div>

![Screenshot 2025-05-18 143840](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/e/bde798908ab2c25fbeb0082bd5a018c43041cc98.png)

Does position get from the bottom right corner?

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [May 18, 2025, 8:54pm UTC](https://forums.unrealengine.com/t/anchors-and-slot-to-canvas-slot/2516883/4 "2025-05-18T20:54:15Z")

</div>

When you use anchors as fill screen, there is no position.

Basically no delta between viewport and viewportcanvas, they are both equal to ScreenSize.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/2/4/42494ca46125d4bd1a15770dc58f97b242767e7c.png)

What exacty you trying to do? Cause in your scripts (the last things we did) will work whatever size it is.

---

<div class="post-metadata">

**Author:** ![Fugra](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fugra](https://forums.unrealengine.com/u/Fugra)\
**Post date:** [May 18, 2025, 9:12pm UTC](https://forums.unrealengine.com/t/anchors-and-slot-to-canvas-slot/2516883/5 "2025-05-18T21:12:46Z")

</div>

Umm everything works fine btw 😃 Its just when i try to add wrap stuff around it :o

Doesnt Work with Elements wrapping:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/7/3f7552f92fffe6101476dc747360d2575b059158.jpeg "UE5") ](https://www.youtube.com/watch?v=y7pTThmPOyo)

Works with just the normal widget no elements wrapping:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/2/162a085b74fa3e19fd4a94f9c2916e958ecd6e04.jpeg "UE5") ](https://www.youtube.com/watch?v=fVaPYqJVlSE)

---

<div class="post-metadata">

**Author:** ![RedGrimnir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/redgrimnir/32/1054683_2.png) [@RedGrimnir](https://forums.unrealengine.com/u/RedGrimnir)\
**Post date:** [May 18, 2025, 10:01pm UTC](https://forums.unrealengine.com/t/anchors-and-slot-to-canvas-slot/2516883/6 "2025-05-18T22:01:31Z")

</div>

When you add a wrapper around the element, the slot can change. There is many slots like CanvasSlot, OverlaySlot etc.

---

<div class="post-metadata">

**Author:** ![Fugra](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fugra](https://forums.unrealengine.com/u/Fugra)\
**Post date:** [May 19, 2025, 2:13am UTC](https://forums.unrealengine.com/t/anchors-and-slot-to-canvas-slot/2516883/7 "2025-05-19T02:13:47Z")

</div>

slot as canvas slot is the only one with size and position though?

and i still dont understand how im going to wrap that viewport widget 😥
