# Clamp a widget component so it doesn't leave screen bounds

**URL:** <https://forums.unrealengine.com/t/clamp-a-widget-component-so-it-doesnt-leave-screen-bounds/478990>\
**Category:** UI\
**Tags:** screen-position, unreal-engine, Widget, question\
**Created:** [February 18, 2021, 9:45am UTC](https://forums.unrealengine.com/t/clamp-a-widget-component-so-it-doesnt-leave-screen-bounds/478990 "2021-02-18T09:45:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_1c49c45c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1c49c45c](https://forums.unrealengine.com/u/anonymous_user_1c49c45c)\
**Post date:** [February 18, 2021, 9:45am UTC](https://forums.unrealengine.com/t/clamp-a-widget-component-so-it-doesnt-leave-screen-bounds/478990/1 "2021-02-18T09:45:35Z")

</div>

I’m doing a top down game and I have clients that order beer and other food items in the game to be delivered. When they order a widget appears above their heads and shows on screen but if they’re off-screen you can’t see them order and if the camera moves, the widget moves off-screen.

I’d like to make it so that no matter what, that widget is visible on-screen regardless of if the actor it’s attached to is actually visible, is there any way to do this?

Bearing in mind this is a local multiplayer game with a single, shared viewport.

![330078-capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/a/49a4c43884cf6cc99ad98de40722eb8ff7e6e20c.png)

The widget in question

 ![330079-2capture.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/8/4986effb7dabe019df7b4a0d165e63cd9b3dcf5b.png)

How it looks now, which I don’t want to have happen anymore
