---
schema_version: "1"
id: 8826b391ac133c407c2272e5e603d1ac7cbc4eaae1cdf3d66ae392e717e3b733
title: Publisher Context Considerations
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/canvas-framework/guides/platform-connect/using/chatter/canvas-apps-publisher-context-considerations.md
canonical_url: https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-apps-publisher-context-considerations.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c36c8816038168f0432a4288ee62b5a2707bae1d1d48417844502d9c73208b7b
products:
  - Canvas Developer Guide
  - Platform Developer Content
---

# Publisher Context Considerations

When you display a canvas app inside the publisher, the context information you receive from the signed request or from a `getContext()` call contains information specific to the publisher:

-   Location—If the canvas app is in the publisher, then the `Environment.displayLocation` field contains the value `Publisher`.
-   Size—The `Environment.Dimensions` object contains information about the size of the canvas app.

    -   The canvas app height will be the height you specify in the quick action that you created.
    -   If you selected `Create Actions Automatically` when you created the canvas app, the canvas app height defaults to 200 pixels.
    -   The canvas app width defaults to 521 pixels, which is the same as the maximum width of a canvas app in the publisher.
    -   The maximum height of a canvas app in the publisher is 500 pixels.
    -   The maximum width of a canvas app in the publisher is 521 pixels.
    -   This code snippet shows the default size values of a canvas app in the publisher:

        ```nolang
        "dimensions":
        {
            "width": "521px",
            "height": "200px",
            "maxHeight": "500px",
            "maxWidth": "521px"
        }
        ```

    -   The publisher is a fixed width of 521 pixels. For example, if you resize your canvas app to be 400 pixels, the publisher width remains 521 pixels.
    -   You can use the `resize()` method in the Canvas SDK to change the values of your canvas app up to the `maxHeight` and `maxWidth`.

**See Also**  


-   [Create the Action Manually](https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-apps-publisher-create-action.md)
-   [Environment](https://developer.salesforce.com/docs/platform/reference/environment-object.md)
-   [Dimensions](https://developer.salesforce.com/docs/platform/reference/dimensions-object.md)
-   [Resizing a Canvas App](https://developer.salesforce.com/docs/platform/canvas-framework/resizing/canvas-app-resizing.md)
-   [Publisher Canvas App Access Considerations](https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-apps-publisher-app-access-considerations.md)
-   [Canvas Apps in the Chatter Feed](https://developer.salesforce.com/docs/platform/canvas-framework/guide/canvas-apps-in-chatter-feed.md)

