Skip to reading
GUI: Working with Grids

Let the grid count the columns

Edition 0.86.4.1 HF1

New illustrated guide for 0.86.4.1 Hotfix 1, covering desktop/phone grid layouts and built-in inventory/save widgets.

Download PDFView illustrations

06 / AUTOMATIC WRAPPING

Here the same six buttons fit three across on the original menu and two across on a phone. PCA gets both results from one pair of settings.

AUTHORED SIZE  /  640 × 360                                     PHONE PORTRAIT  /  390 × 844

Both are actual Designer previews with columns set to 0 and columnWidth set to 160. The phone image shows the top of the portrait canvas.

01. Switch to automatic columns

Open the container’s layout dialog. Set columns to 0 and columnWidth to 160. Click Apply. The target width tells PCA how many cells can fit. It shares the available width across those cells.

02. Compare two widths

On the toolbar, switch from Authored size to Phone portrait · 390 × 844. With the margins on page 4 and padding on page 5, 334 pixels remain inside the phone grid. Two 163-pixel buttons and one 8-pixel gap fit.

03. Decide if you need a profile

If this looks right at both sizes, keep automatic columns. Use the next page when a particular screen must have exactly two columns, even if another narrow cell could fit.

WHEN TEXT STICKS OUT

A long caption or a child’s minWidth can be wider than its cell. Check Preview settings for overflow. Try fewer columns, a shorter label, or more container width.

Working with grids / 7

Page 7 of 12Permalink
Go to page