Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,22 @@ <h2>Dashboard Coming Soon</h2>
});

// Fix iframe height on tab switch
function resizeIframe() {
const iframe = $('#docs iframe');
if (iframe.length) {
const newHeight = Math.max(800, window.innerHeight - 250);
iframe.css('height', newHeight + 'px');
}
}

$('#docs-tab').on('shown.bs.tab', function (e) {
// Potential to auto-resize iframe if needed
resizeIframe();
});

$(window).resize(function() {
if ($('#docs-tab').hasClass('active')) {
resizeIframe();
}
});
});
</script>
Expand Down
Loading