# Uniform Grid Panel setup

**URL:** <https://forums.unrealengine.com/t/uniform-grid-panel-setup/89025>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [April 1, 2017, 2:46pm UTC](https://forums.unrealengine.com/t/uniform-grid-panel-setup/89025 "2017-04-01T14:46:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [April 1, 2017, 7:41pm UTC](https://forums.unrealengine.com/t/uniform-grid-panel-setup/89025/2 "2017-04-01T19:41:01Z")

</div>

Welcome to the forums.

If you want a widget to have a specific size, you can place it on a canvas; in addition, this will allow you to control its position (amongst other things). Here is an example of a \*UniformGrid \*sitting on the canvas (inside a border to make it pretty). The grid widget:

 ![grid.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/0/4e097f33b70ad20589419875e8fb4d957ee40ddd.png)

When you add children to a \*UniformGrid \*you’ll need to specify which column & row they occupy. If you add children manually, you can set it up in the details panel of every child (as default they sit at [0,0] I think - so yeah, they will stack on top of one another). If you spawn them dynamically, which is your case, you’ll need to assign row & column as you populate the grid.

Here is a child widget I’m going to add to the _UniformGrid_ –\> [wGridChild]:

- padding in the widget root [wGridChild] will prevent it from touching other children
- the border will keep whatever you place inside centred, according to the alignment settings and padding

 ![childG.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/8/2584e0ccffe6dcdfa11a3e64f7b38edd7f4da3d1.png)

And this is how you can put it together, including setting up columns and rows as well as defining horizontal & vertical alignment in the \*UniformGrid’s \*slots:

 ![graph.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/7/a72330e99ff0f72b1fd4eccd2ae7123be9617c45.jpeg)

…which produced this:

![end.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/0/b0331bea01815d30fe33d8c4d93eca765c237b4a.png)

If you have any additional questions, keep them coming.

---

_[View the full topic](https://forums.unrealengine.com/t/uniform-grid-panel-setup/89025)._
