# How to lock widgets button location?

**URL:** <https://forums.unrealengine.com/t/how-to-lock-widgets-button-location/1720168>\
**Category:** UI\
**Tags:** interface, button, buttons, unreal-engine, editor, UI, Widget, Blueprint, question\
**Created:** [February 29, 2024, 11:25am UTC](https://forums.unrealengine.com/t/how-to-lock-widgets-button-location/1720168 "2024-02-29T11:25:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![N\_DOKY](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/n_doky/32/927050_2.png) [@N\_DOKY](https://forums.unrealengine.com/u/N_DOKY)\
**Post date:** [February 29, 2024, 11:25am UTC](https://forums.unrealengine.com/t/how-to-lock-widgets-button-location/1720168/1 "2024-02-29T11:25:18Z")

</div>

Hi there UE experts!

Does anyone know a way to lock the buttons location so it dosen’t move aounrd or be effected by the text size?

![Buttons Widgits](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/f/0dffffeead773f0ada076444983b6bfeafda38c7.gif)  
 ![widgets](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/f/7/ef79542748a0bf2662adc24d54cb10323d312aaf.png)

Any tip would help!  
Thank You

---

<div class="post-metadata">

**Author:** ![JoSf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoSf](https://forums.unrealengine.com/u/JoSf)\
**Post date:** [February 29, 2024, 11:32am UTC](https://forums.unrealengine.com/t/how-to-lock-widgets-button-location/1720168/2 "2024-02-29T11:32:17Z")

</div>

You could wrap the text in a size box

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 29, 2024, 11:38am UTC](https://forums.unrealengine.com/t/how-to-lock-widgets-button-location/1720168/3 "2024-02-29T11:38:42Z")

</div>

I’d say there’s no need for an additional widget but it, too, could work, ofc. Flag the direct children of the Horizontal Box `Size` as `Fill` and adjust the value - it represents the percentage of how much space each widget occupies. Eyeballing it:

- Costumes: 0.4
- buttons: 0.15
- Name 0.3

Make sure it adds up to 1.0 for consistency. Tweak as needed.

---

<div class="post-metadata">

**Author:** ![N\_DOKY](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/n_doky/32/927050_2.png) [@N\_DOKY](https://forums.unrealengine.com/u/N_DOKY)\
**Post date:** [February 29, 2024, 11:47am UTC](https://forums.unrealengine.com/t/how-to-lock-widgets-button-location/1720168/4 "2024-02-29T11:47:45Z")

</div>

The Unreal Hero is back! Always appreate the effort ❤

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 30, 2024, 11:47am UTC](https://forums.unrealengine.com/t/how-to-lock-widgets-button-location/1720168/5 "2024-03-30T11:47:51Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
