# Enum.AutomaticSize

Roblox Engine API enum from Roblox Studio 0.744.0.7441077 (version-7aaa6838d36c4448).

- HTML page: https://rapi.sleaze.dev/enums/AutomaticSize/
- Roblox documentation: https://create.roblox.com/docs/reference/engine/enums/AutomaticSize

UI objects with `AutomaticSize` enabled will increase in size up to maximum size allowed by the parent (if there is one) and no smaller than the `Size` property bounds.

## Items

| Name | Value | Description |
| --- | --- | --- |
| `None` | 0 | Default sizing behavior. |
| `X` | 1 | Automatically resize element along the **X** axis to fit child contents. |
| `Y` | 2 | Automatically resize element along the **Y** axis to fit child contents. Text objects will only resize along the **Y** axis if their `TextWrapped` property is enabled. |
| `XY` | 3 | Automatically resize element along the **X** and **Y** axes to fit child contents. |

## Used by

Each entry lists the class, then the role and names of the members that use this type.

- [GuiObject](https://rapi.sleaze.dev/classes/GuiObject.md): property `AutomaticSize`
- [ScrollingFrame](https://rapi.sleaze.dev/classes/ScrollingFrame.md): property `AutomaticCanvasSize`
