context.fitSize('#myElementId') - Available only within the iframe context. Calculates the actual height of the provided element and adjusts the iframe's available height to match the actual height (for example, when used with the 'card_body_section' iframe, using this function will adjust the iframe's height to eliminate scrolling or empty space).
| argument | Type | Description |
|---|---|---|
| #myElementId | string | domElement | number | Accepts the class name or ID of an element, or a DOM element, or a number (height). |
Return value - Promise
const iframe = Addon.iframe();
iframe.fitSize('#timerLogContent');