# Making widget not affect size of parent

**URL:** <https://forums.unrealengine.com/t/making-widget-not-affect-size-of-parent/879694>\
**Category:** Blueprint\
**Tags:** unreal-engine, Widget, question, Blueprint\
**Created:** [April 9, 2023, 1:19am UTC](https://forums.unrealengine.com/t/making-widget-not-affect-size-of-parent/879694 "2023-04-09T01:19:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zapking9224](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zapking9224/32/1060813_2.png) [@Zapking9224](https://forums.unrealengine.com/u/Zapking9224)\
**Post date:** [April 9, 2023, 1:19am UTC](https://forums.unrealengine.com/t/making-widget-not-affect-size-of-parent/879694/1 "2023-04-09T01:19:03Z")

</div>

Hi,  
So I have an inventory slot and when the player clicks on it, I want this other widget that I made to slide out. The way that I have it working now is the widget that slides out is a child of the slot widget. The problem is that if I want to scale the sliding widget to anything larger than the slot widget, it will shift the entire inventory widget. I understand why this is happening but I’m not sure how I would go about fixing this. If a solution is to create the widget from within the slot widget on construction and add to to the viewport, how could I ensure the placement of the widget? That’s just a thought but I’m not really sure how else I would go about this. I’d kind of want it to have a resident evil 7 feel.

When the sliding widget is the same size or smaller than the slot on the left

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/a/f/9af575ee6a3f4908f4d8b8fad342dd4db3be9f71.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/8/c98d8d686ee4c08156fbbf3ff31776a765bd8069.jpeg)

When the slidng widget is larger than the slot on the left

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/c/f7c07aa2aa78cdc78dfac5b85773533440a12798.png)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/a/b3a857fbbef8e54cd90811cb94fb9cdf4c857be7.jpeg)

The type of look and feel I’d want this to have  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/7/2/372ba8ac1b7afd4be6a93a3d97881f57c6ed2dba.jpeg)
