From d73da33b081a0027fbc366ea63873725d805f91b Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sun, 14 Aug 2022 02:43:09 +0300 Subject: [PATCH] Fix max content width not working (fixes #3056) --- src/public/app/widgets/note_wrapper.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/public/app/widgets/note_wrapper.js b/src/public/app/widgets/note_wrapper.js index 8b02daa2a..cae922a3a 100644 --- a/src/public/app/widgets/note_wrapper.js +++ b/src/public/app/widgets/note_wrapper.js @@ -10,12 +10,6 @@ export default class NoteWrapperWidget extends FlexContainer { .collapsible(); } - doRender() { - super.doRender(); - - this.$widget.addClass("note-split"); - } - setNoteContextEvent({noteContext}) { this.noteContext = noteContext; @@ -42,6 +36,7 @@ export default class NoteWrapperWidget extends FlexContainer { return; } + this.$widget.addClass("note-split"); this.$widget.toggleClass("full-content-width", ['image', 'mermaid', 'book', 'render', 'canvas', 'web-view'].includes(note.type) || !!note?.hasLabel('fullContentWidth')