# FitToContents

> The width of each toolbar button is calculated based on the width of its content.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.3/script-reference/unityengine.md)
* **Assembly:** UnityEngine.IMGUIModule

```csharp
FitToContents = 1
```
