# Widget anchors

**URL:** <https://forums.unrealengine.com/t/widget-anchors/2676733>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [November 20, 2025, 6:22am UTC](https://forums.unrealengine.com/t/widget-anchors/2676733 "2025-11-20T06:22:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![TTV\_KingImpurity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TTV\_KingImpurity](https://forums.unrealengine.com/u/TTV_KingImpurity)\
**Post date:** [November 20, 2025, 6:22am UTC](https://forums.unrealengine.com/t/widget-anchors/2676733/1 "2025-11-20T06:22:43Z")

</div>

Please dear god somebody save me from myself

Okay so I am trying to create a widget for a keypad i am working on and i have everything done but the buttons keep either offsetting themselves or resizing themselves depending on the window size.

Yes i understand that the buttons location is relative to the location of the Anchor and maybe i am misunderstanding something here but no matter what location i have set the anchors to they always end up changing when i resize the window.

About to quit my entire project just because of this LMAO (joking not joking)

---

<div class="post-metadata">

**Author:** ![dZh0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dZh0](https://forums.unrealengine.com/u/dZh0)\
**Post date:** [November 20, 2025, 8:13am UTC](https://forums.unrealengine.com/t/widget-anchors/2676733/2 "2025-11-20T08:13:16Z")

</div>

Can you show us a screenshot of your setup?

Most important is the hierarchy inside the widget and the details of the parent of the buttons and the buttons themselves.

---

<div class="post-metadata">

**Author:** ![TTV\_KingImpurity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TTV\_KingImpurity](https://forums.unrealengine.com/u/TTV_KingImpurity)\
**Post date:** [November 20, 2025, 11:08am UTC](https://forums.unrealengine.com/t/widget-anchors/2676733/3 "2025-11-20T11:08:03Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/9/a/a9a543c98f26348a1d473acdf18f805e0337b927.jpeg)

dont mind some buttons having size boxes and some not, i was experimenting and trying to trouble shoot myself

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [November 20, 2025, 2:30pm UTC](https://forums.unrealengine.com/t/widget-anchors/2676733/4 "2025-11-20T14:30:57Z")

</div>

you dont want a canvas panel, maybe a border for the background with an overlay for placement and a gridbox for the numbers etc

---

<div class="post-metadata">

**Author:** ![BRGEzedeRocco](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brgezederocco/32/1216890_2.png) [@BRGEzedeRocco](https://forums.unrealengine.com/u/BRGEzedeRocco)\
**Post date:** [November 20, 2025, 2:35pm UTC](https://forums.unrealengine.com/t/widget-anchors/2676733/5 "2025-11-20T14:35:42Z")

</div>

Hello @TTV_KingImpurity ,  
You could also use a **Uniform Grid Panel** , which is a UMG container that organizes its children in a perfectly uniform grid, where each cell has the same size.  
This makes it very useful because you can choose in which row and column each widget goes, and the panel will automatically distribute them evenly without deforming when the resolution changes.

Here’s a quick step-by-step guide on how to create it and set it up correctly:

1. First, set the anchor to the center.  

2. Then set Position X and Y to 0, and set the Size to whatever you want the panel’s dimensions to be. In this case, I used 300 X and 400 Y.

3. Alignment defines from which point the panel aligns itself within the space it occupies. If you want it centered, I recommend setting it to 0.5 on both values.

4. In Slot Padding, configure the spacing between the buttons. I used 2.0.  

5. After that, add your buttons with their respective texts. Select all of them and set both Horizontal and Vertical to Fill.

6. Now place each button in its correct row and column:

| Number | Row | Column |
| --- | --- | --- |
| 1 | 0 | 0 |
| 2 | 0 | 1 |
| 3 | 0 | 2 |
| 4 | 1 | 0 |
| 5 | 1 | 1 |
| 6 | 1 | 2 |
| 7 | 2 | 0 |
| 8 | 2 | 1 |
| 9 | 2 | 2 |
| Del | 3 | 0 |
| 0 | 3 | 1 |
| Arrow | 3 | 2 |

1. You can also use the **arrow keys** to move them between cells.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/6/1/361b5c87969e04e347fb26e59b01f94c85f297bd.png)

With this setup, your keypad should work perfectly, without any buttons shifting out of place or resizing unexpectedly.

I’m also leaving you the documentation about anchors, which might be useful for you

> **[UMG Anchors in Unreal Engine UI | Unreal Engine 5.7 Documentation | Epic...](https://dev.epicgames.com/documentation/en-us/unreal-engine/umg-anchors-in-unreal-engine-ui)**
>
> Information on using and setting Anchors to keep UI Widgets in fixed locations based on different screen sizes and aspect ratios in Unreal Engine.

And about what you said

> [@TTV\_KingImpurity](#):
>
> About to quit my entire project just because of this LMAO (joking not joking)

don’t worry, it’s completely normal when you’re making a game. We all go through moments where a small detail ends up being way more frustrating than it should be.

The important thing is to keep going and not give up so easily. If you need to ask something or need help with the keypad logic or any other part of the project, feel free to post in the forum. There’s always someone willing to give you a hand or guide you toward a solution.

Don’t give up, it’s all part of the process.

Hope it helps and Happy developing!

---

<div class="post-metadata">

**Author:** ![Extrone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/extrone/32/906554_2.png) [@Extrone](https://forums.unrealengine.com/u/Extrone)\
**Post date:** [November 20, 2025, 2:36pm UTC](https://forums.unrealengine.com/t/widget-anchors/2676733/6 "2025-11-20T14:36:54Z")

</div>

Please use some of the panels to arrange your widgets instead of the Canvas Panel.

Vertical Box, Horizontal Box, Wrap Box, Grid, Uniform Grid, Stack Box etc.. it’s much easier, I promise

---

<div class="post-metadata">

**Author:** ![TTV\_KingImpurity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TTV\_KingImpurity](https://forums.unrealengine.com/u/TTV_KingImpurity)\
**Post date:** [November 20, 2025, 8:42pm UTC](https://forums.unrealengine.com/t/widget-anchors/2676733/7 "2025-11-20T20:42:15Z")

</div>

thank you so much for your kindness and time put in for the solution to my problem! I appreciate you loads
