# Basic grid in UMG with padding issue with scaling

**URL:** <https://forums.unrealengine.com/t/basic-grid-in-umg-with-padding-issue-with-scaling/436072>\
**Category:** UI\
**Tags:** unreal-engine, scaling, grid, Blueprint, question, dpi, UMG\
**Created:** [October 21, 2018, 3:57pm UTC](https://forums.unrealengine.com/t/basic-grid-in-umg-with-padding-issue-with-scaling/436072 "2018-10-21T15:57:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zarrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zarrey](https://forums.unrealengine.com/u/Zarrey)\
**Post date:** [October 21, 2018, 3:57pm UTC](https://forums.unrealengine.com/t/basic-grid-in-umg-with-padding-issue-with-scaling/436072/1 "2018-10-21T15:57:35Z")

</div>

I am trying to achieve a Diablo 2/3 like inventory. Here is an example of what I am trying to achieve:

[http://gamingillustrated.com/wp-content/uploads/2011/09/diablo-3-inventory-windows.jpg](http://gamingillustrated.com/wp-content/uploads/2011/09/diablo-3-inventory-windows.jpg)

Notice there are evenly spaced slots with some padding between them.

I have basically the same thing implemented with UMG. I am using a grid panel and then a widget containing a border with an image for the slot. The padding between the image and the border is set to 0.5 currently. When I run my game in Standalone while in fullscreen 1080p resolution, here is how it looks on the screen:

 ![257226-untitled.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/8/4e86e05d2a5283f18cf4ccbecd361428d06fe486.png)

Notice how there is a thicker than normal bar in the middle. This should not be happening when they are all set to .5 padding. The grid itself also has a .5 padding around the outside of the tiles. The scaling only gets worse if you zoom in/out in the actual UMG class, or doing PIE.

Does anyone have any advice on how to tackle this issue?

---

<div class="post-metadata">

**Author:** ![Firyon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Firyon](https://forums.unrealengine.com/u/Firyon)\
**Post date:** [March 19, 2019, 3:13pm UTC](https://forums.unrealengine.com/t/basic-grid-in-umg-with-padding-issue-with-scaling/436072/2 "2019-03-19T15:13:01Z")

</div>

I am trying to achieve the same thing and i run exactly into the same issue… in 4.19.2

Did you find a fix ?
