---
schema_version: "1"
id: bcbe85245a559a82fd83472d044647f5a5e4975ece138dfd4344e6076c9bc00f
title: Resizing a Canvas App
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/canvas-framework/guides/platform-connect/using/resizing/canvas-app-resizing.md
canonical_url: https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-app-resizing.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1c985a651abd3fc9e4902c963846ef2caa29082ebf5807cc17fa424ae54e6856
products:
  - Canvas Developer Guide
  - Platform Developer Content
---

# Resizing a Canvas App

Canvas provides methods for resizing a canvas app. Full reference documentation for these methods can be found in the [SDK](https://github.com/forcedotcom/salesforcecanvasframeworksdk) and [here](http://htmlpreview.github.io/?https://github.com/forcedotcom/SalesforceCanvasJavascriptSDK/blob/master/docs/index.html).

-   `autogrow`—Starts or stops a timer that checks the content size of the canvas iFrame and adjusts the frame. See [Automatically Resizing a Canvas App](https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-app-autogrow-code-example.md).
-   `resize`—Informs the parent window to resize the canvas iFrame. See [Explicitly Resizing a Canvas App](https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-app-resize-code-example.md).
-   `size`—Returns the current size of the canvas iFrame. See [Getting the Size of a Canvas App](https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-app-size-code-example.md).
-   `subscribe`—Subscribes to parent events. Currently, `canvas.scroll` (of the parent) is the only supported parent event in the `canvas` namespace. See [Subscribing to Parent Events](https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-app-subscribe-code-example.md).

**note:** For resize functions to work with your canvas app, you must declare a DOCTYPE at the top of any HTML pages that are associated with the app. For example: `<!DOCTYPE html>`.

-   **[Automatically Resizing a Canvas App](https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-app-autogrow-code-example.md)**  

-   **[Explicitly Resizing a Canvas App](https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-app-resize-code-example.md)**  

-   **[Getting the Size of a Canvas App](https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-app-size-code-example.md)**  

-   **[Subscribing to Parent Events](https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-app-subscribe-code-example.md)**  

-   **[Handling Orientation Changes in Your Canvas App](https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-app-orientation-code-example.md)**  


**See Also**  


-   [Canvas SDK](https://developer.salesforce.com/docs/platform/canvas-framework/canvas-framework-using-sdk.md)

