diff --git a/src/calibre/gui2/comments_editor.py b/src/calibre/gui2/comments_editor.py index fa599f37bf..170e831236 100644 --- a/src/calibre/gui2/comments_editor.py +++ b/src/calibre/gui2/comments_editor.py @@ -640,9 +640,6 @@ class Editor(QWidget): # {{{ self.highlighter = Highlighter(self.code_edit.document()) self.layout().setContentsMargins(0, 0, 0, 0) - def set_minimum_height_for_editor(self, val): - self.editor.setMinimumHeight(val) - # toolbar1 {{{ self.toolbar1.addAction(self.editor.action_undo) self.toolbar1.addAction(self.editor.action_redo) @@ -691,6 +688,9 @@ class Editor(QWidget): # {{{ self.code_edit.textChanged.connect(self.code_dirtied) self.editor.page().contentsChanged.connect(self.wyswyg_dirtied) + def set_minimum_height_for_editor(self, val): + self.editor.setMinimumHeight(val) + @dynamic_property def html(self): def fset(self, v): @@ -740,3 +740,4 @@ if __name__ == '__main__': app.exec_() # print w.html +