> For the complete documentation index, see [llms.txt](https://docs.overdare.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overdare.com/development/api-reference/enums/automaticsize.md).

# AutomaticSize

## Overview

AutomaticSize is an Enum that defines the axis along which the size of a UI element is automatically increased to fit its content.

It is used in the AutomaticSize property of GuiObject and the AutomaticCanvasSize property of ScrollingFrame, and determines the axis along which the size is automatically adjusted.

## Items

| Name | Value | Description                                          |
| ---- | ----- | ---------------------------------------------------- |
| None | 0     | Automatic size adjustment is not used.               |
| X    | 1     | Automatically adjusts only the width.                |
| Y    | 2     | Automatically adjusts only the height.               |
| XY   | 3     | Automatically adjusts both the width and the height. |

## See also

{% content-ref url="/pages/tUoR0XOCon8z9Z73VLym" %}
[GuiObject](/development/api-reference/classes/guiobject.md)
{% endcontent-ref %}

{% content-ref url="/pages/mynrdpnaLAwMCUWSc9kw" %}
[ScrollingFrame](/development/api-reference/classes/scrollingframe.md)
{% endcontent-ref %}
