---
agentTools:
  projectIndex: https://whsjs.readme.io/llms.txt
---

# ResizeModule

`WHS.app.ResizeModule`

[block:code]
{
  "codes": [
    {
      "code": "const app = new WHS.App([\n  // ...\n  new WHS.app.ResizeModule()\n]);",
      "language": "javascript",
      "name": "app.js"
    }
  ]
}
[/block]

[block:api-header]
{
  "type": "basic",
  "title": "Parameters"
}
[/block]

[block:parameters]
{
  "data": {
    "h-0": "Name",
    "h-1": "Description",
    "h-2": "Default",
    "0-0": "`auto`",
    "0-2": "`true`",
    "0-1": "If set to `true` - resize will be triggered when container resizes"
  },
  "cols": 3,
  "rows": 1
}
[/block]

[block:api-header]
{
  "type": "basic",
  "title": "API"
}
[/block]

[block:api-header]
{
  "type": "fn",
  "title": ".setSize(width = 1, height = 1)"
}
[/block]

This function sets provided `width` & `height` to the renderer object.

[block:api-header]
{
  "type": "fn",
  "title": ".trigger()"
}
[/block]

Triggers resize when called. `width` & `height` are determined automatically