Work out the width and height
The cell area needs at least the total cell sizes plus the gaps between them. The widget also needs padding, its optional header and navigation controls.
| Part | Workshop calculation |
|---|---|
| Cell area width | 3 × 310 + 2 × 12 = 954 |
| Cell area height | 2 × 116 + 1 × 12 = 244 |
| Widget padding | 16 on each side, adding 32 horizontally and vertically |
| Header and arrows | Extra vertical room; they are not included in the cell-area calculation. |
| Chosen outer size | 1056 × 400, leaving useful space around the 954 × 244 cells. |
Border styles and the scrollbar’s own width take a little space too. Do not fit the arithmetic to the last pixel and assume every theme will behave identically. Leave some breathing room.
The Save Game Widget uses the same layout machinery. A thumbnail can make a save card’s content taller than its authored slot height, so budget for the image, caption, gap and padding together.
A scrollbar appearing inside a paged grid usually means the current page’s content does not fit. Paging and scrolling are different: the page changes which items are supplied; the scrollbar moves within an oversized supplied page.
