mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-05-05 11:49:12 -05:00
client: Fix content size for code editor
This commit is contained in:
@@ -25,6 +25,7 @@ export default class EditableCodeTypeWidget extends AbstractCodeTypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
|
this.contentSized();
|
||||||
this.$editor = this.$widget.find('.note-detail-code-editor');
|
this.$editor = this.$widget.find('.note-detail-code-editor');
|
||||||
|
|
||||||
keyboardActionService.setupActionsForElement('code-detail', this.$widget, this);
|
keyboardActionService.setupActionsForElement('code-detail', this.$widget, this);
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ export default class ReadOnlyCodeTypeWidget extends AbstractCodeTypeWidget {
|
|||||||
|
|
||||||
doRender() {
|
doRender() {
|
||||||
this.$widget = $(TPL);
|
this.$widget = $(TPL);
|
||||||
|
this.contentSized();
|
||||||
this.$editor = this.$widget.find('.note-detail-readonly-code-content');
|
this.$editor = this.$widget.find('.note-detail-readonly-code-content');
|
||||||
|
|
||||||
super.doRender();
|
super.doRender();
|
||||||
|
|||||||
Reference in New Issue
Block a user