diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-13 12:15:32 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-01-13 12:15:32 +0300 |
commit | 5d0c43f60d96dfa436edd9a248100b935c05edf1 (patch) | |
tree | 460f7552a41be4f7140b5603601743ba47fcb1f9 /app/assets/javascripts/behaviors | |
parent | 03d085654717ea2f4a884f9286d56cc9e6381f4e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/behaviors')
-rw-r--r-- | app/assets/javascripts/behaviors/markdown/render_sandboxed_mermaid.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/behaviors/markdown/render_sandboxed_mermaid.js b/app/assets/javascripts/behaviors/markdown/render_sandboxed_mermaid.js index b9e4c7b68b0..1d54a1b0c04 100644 --- a/app/assets/javascripts/behaviors/markdown/render_sandboxed_mermaid.js +++ b/app/assets/javascripts/behaviors/markdown/render_sandboxed_mermaid.js @@ -91,6 +91,7 @@ function renderMermaidEl(el, source) { sandbox: 'allow-scripts', frameBorder: 0, scrolling: 'no', + width: '100%', }); // Add the original source into the DOM @@ -119,7 +120,6 @@ function renderMermaidEl(el, source) { return; } const { h } = event.data; - iframeEl.width = '100%'; iframeEl.height = `${h + BUFFER_IFRAME_HEIGHT}px`; }, false, |