Skip to content
Snippets Groups Projects
Commit 9d40f641 authored by Elmar Ludwig's avatar Elmar Ludwig Committed by Jan-Hendrik Willms
Browse files

delay style update until next event cycle, re #3510

Merge request studip/studip!2939
parent 102639a7
No related branches found
No related tags found
No related merge requests found
......@@ -6,10 +6,13 @@ STUDIP.domReady(() => {
$(document).on('focus blur', '.studip-dialog .ck-editor__editable_inline', function(event) {
let height = this.clientHeight;
let editor = this.ckeditorInstance;
// this is needed on Chrome, see https://gitlab.studip.de/studip/studip/-/issues/3510
setTimeout(() => {
editor.editing.view.change(writer => {
writer.setStyle('height', height + 'px', editor.editing.view.document.getRoot());
});
});
});
// replace areas that are created or shown after page load
// remove editors that become hidden after page load
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment