fitSize

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).

Arguments
argumentTypeDescription
#myElementIdstring | domElement | numberAccepts 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');
logo
Kaiten
If you have any questions or need help with integration feel free to write us at support@kaiten.io