Kalpana Docs
Kalpana Designer Studio

Fixed, Hug and Fill

Decide whether a layer keeps its size, shrinks around its content or stretches to the space it is given.

These settings decide what happens to a layer's size when its content or its parent changes. They are what lets a badge grow with a longer word, or a title use the full width of its column.

Set Resizing

Find the row

Select a layer inside a frame that has a layout flow, or a frame that has a layout flow itself. In Position, the Resizing row shows two lists.

Choose for each axis

The first list is horizontal and reads W Fixed, W Hug or W Fill. The second is vertical and reads H Fixed, H Hug or H Fill. You set each axis on its own.

The Resizing row with the W list open showing W Fixed, W Hug and W Fill

What each choice does

ChoiceResult
FixedThe layer keeps the size you type in W and H.
HugThe layer shrinks or grows around its content. A frame wraps its layers and padding. A text layer wraps its words. W or H is greyed out.
FillThe layer takes the space its parent gives it. Several Fill layers in one row or column share the spare room.

A frame that is not inside another layout flow offers Fixed and Hug only. Fill needs a parent with a layout flow.

Fill has nothing to fill inside a parent that is set to Hug on the same axis. Set the parent to Fixed if the child should stretch.

For a text layer, Resizing and Box are one setting seen two ways. Hug on both axes is the same as a Hug box. A Fill width gives a box that wraps within its column. See Fit text in its box.

Try it

Make a badge that grows with its words:

  1. Select Badge. If you made its Box Fixed earlier, set it back to Hug. Then press Shift+A. The text is wrapped in a frame with a layout flow, and the frame hugs it.
  2. In Layout flow, set the first Padding field (left and right) to 24 and the second (top and bottom) to 12.
  3. In Fill, choose Add fill (+) and give the frame a colour. A new frame has no fill.
  4. Select the text in Layers, press Enter and type a longer phrase, such as Only a few left. The coloured shape grows with it. Put the original words back afterwards.

You should see the badge shape stretch for the longer copy and shrink again for the short one.

Next

Was this page helpful?

Updated 4 Nov 2026

On this page