# FITMODE_CONTAIN

Variable · category: User Interface

Source: https://github.com/playcanvas/engine/blob/b5b983982a9860d21e0c1dafb2f85f72e2c01afb/src/framework/components/element/constants.js#L34

Fit the content within the Element's bounding box while preserving its Aspect Ratio.

```ts
const FITMODE_CONTAIN: "contain" = 'contain'
```
