client: Fix content size for code editor

This commit is contained in:
Elian Doran 2024-10-23 20:27:36 +03:00
parent 9f6f0f5d60
commit 70ebf1a08f
No known key found for this signature in database
2 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ export default class EditableCodeTypeWidget extends AbstractCodeTypeWidget {
doRender() {
this.$widget = $(TPL);
this.contentSized();
this.$editor = this.$widget.find('.note-detail-code-editor');
keyboardActionService.setupActionsForElement('code-detail', this.$widget, this);

View File

@ -21,6 +21,7 @@ export default class ReadOnlyCodeTypeWidget extends AbstractCodeTypeWidget {
doRender() {
this.$widget = $(TPL);
this.contentSized();
this.$editor = this.$widget.find('.note-detail-readonly-code-content');
super.doRender();