> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tackstudio.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Auto-fit to height

> Fit the box height to its text.

These three buttons automatically resize a box’s **height** to match its text. Auto-fit is only available when [vertical alignment](/paragraph-plus/vertical-alignment) is set to **top**.

| Button             | Fits box height to...                            |
| ------------------ | ------------------------------------------------ |
| Fit to cursor      | The text’s cursor/insertion point.               |
| Fit to text bounds | The precise visible bounds of the rendered text. |
| Fit to baseline    | The text’s baseline.                             |

Click a button to turn that fitting method on, or click it again to turn auto-fit off entirely.

<Callout icon="lightbulb" color="#F05F3F">
  While auto-fit is on, the height field in [Box position, size & padding](/paragraph-plus/box-position-size-and-padding) is locked, since After Effects is calculating it for you. Turn auto-fit off to set height manually again.
</Callout>
