> For the complete documentation index, see [llms.txt](https://docs.flatredball.com/gum/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flatredball.com/gum/gum-tool/gum-elements/general-properties/min-width.md).

# Min Width

## Introduction

The `Min Width` variable sets the minimum width in pixels. The value is applied after all other layout so it can be used to overwrite automatically-assigned width.

By default this value is `<NULL>` which means there is no `Min Width`.

<figure><img src="https://2695663588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fzQmxQ1VeUFHcoo2c%2Fuploads%2Fgit-blob-d3c8fe9bf37d34ac987c106cbfee7a09c6aee80c%2F15_07%2027%2003.gif?alt=media" alt=""><figcaption><p>A ColoredRectangle with no Min Width</p></figcaption></figure>

If `Min Width` is assigned (not `<NULL>`), then the effective width cannot be smaller than the `Min Width` value. The following animation shows that the width is limited to a `Min Width` of `100`.

<figure><img src="https://2695663588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fzQmxQ1VeUFHcoo2c%2Fuploads%2Fgit-blob-f3f0ac0507676e9387dcd65ab7a125cd10b585c3%2F15_07%2028%2016.gif?alt=media" alt=""><figcaption><p>Min Width set to 100 limits the ColoredRectangle's width</p></figcaption></figure>

Notice that the `Width` variable can still be set to a value smaller than `Min Width`, but it does not apply visually.

`Min Width` can also be used if `Width Units` is set to values other than `Absolute`. For example, `Min Width` can be used to limit the width of a ColoredRectangle when `Width Units` is `Relative to Parent`.

<figure><img src="https://2695663588-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M_fzQmxQ1VeUFHcoo2c%2Fuploads%2Fgit-blob-00de1b34aa5a9839c51858f0e3eae72e8c9fb929%2F15_07%2030%2020.gif?alt=media" alt=""><figcaption><p>ColoredRectangle's width limited by its <code>Min Width</code> of 100</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flatredball.com/gum/gum-tool/gum-elements/general-properties/min-width.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
