Skip to content
Snippets Groups Projects
Commit c90f4767 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

delay style update until next event cycle, re #3510

Merge request studip/studip!2939
parent 01bf94bc
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,11 @@ STUDIP.domReady(() => {
$(document).on('focus blur', '.studip-dialog .ck-editor__editable_inline', function(event) {
let height = this.clientHeight;
let editor = this.ckeditorInstance;
editor.editing.view.change(writer => {
writer.setStyle('height', height + 'px', editor.editing.view.document.getRoot());
// 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());
});
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment