function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Laurent LemireLaurent Lemire 

canvas app same size as the visualforce page

Is there a way to detect the size of the visualForce page so that the canvas app can be resized accordingly?
SandhyaSandhya (Salesforce Developers) 
Hi,

I think you can use autogrow method, refer below link

https://developer.salesforce.com/docs/atlas.en-us.platform_connect.meta/platform_connect/canvas_app_autogrow_code_example.htm?search_text=autogrow
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
 
Thanks and Regards
Sandhya
 
Laurent LemireLaurent Lemire
Hi, 

For our canvas application, we are forced to use the OAuth Webflow (GET) method, so we don't have access to the client object.

I just looked at the other function used to resize a canvas application and they all seem to use the client objet from the signed request, is there a way to get that client object while using the OAuth Webflow method?