mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-23 15:51:35 +08:00
client: Fix content size for code editor
This commit is contained in:
parent
9f6f0f5d60
commit
70ebf1a08f
@ -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);
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user