# UMG Widget: Stay on screen - But how?

**URL:** <https://forums.unrealengine.com/t/umg-widget-stay-on-screen-but-how/123044>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [March 2, 2019, 4:07pm UTC](https://forums.unrealengine.com/t/umg-widget-stay-on-screen-but-how/123044 "2019-03-02T16:07:47Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [November 18, 2020, 12:11pm UTC](https://forums.unrealengine.com/t/umg-widget-stay-on-screen-but-how/123044/5 "2020-11-18T12:11:17Z")

</div>

> [@dudusstar](#):
>
> Hi! I want to do the same but I have no idea how. Can you show me your blueprint solution? Thank you!!

while there’s half a dozen ways to implement this, the gist is to subtract half the widget size from the viewport size and use it as a clamp:

 ![Screenshot 2020-11-18 120640.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/4/c44cc490fd30e71d37f8c7c129bb4333f20b33eb.jpeg)

vid: [https://i.gyazo.com/7e60baa21a0fbe5e5796d81524b27671.mp4](https://i.gyazo.com/7e60baa21a0fbe5e5796d81524b27671.mp4)

---

_[View the full topic](https://forums.unrealengine.com/t/umg-widget-stay-on-screen-but-how/123044)._
