mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix comments editor in review metadata becoming too small
Fix comments editor in review metadata becoming too small on small screens. Fixes #1245275 [review downloaded metadata doesn't show the comments field](https://bugs.launchpad.net/calibre/+bug/1245275)
This commit is contained in:
parent
2e2f74ea09
commit
e4557408a8
@ -640,6 +640,9 @@ 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)
|
||||
|
@ -213,6 +213,7 @@ class CommentsEdit(Editor):
|
||||
|
||||
def __init__(self, field, is_new, parent, metadata, extra):
|
||||
Editor.__init__(self, parent, one_line_toolbar=False)
|
||||
self.set_minimum_height_for_editor(150)
|
||||
self.is_new = is_new
|
||||
self.field = field
|
||||
self.metadata = metadata
|
||||
|
Loading…
x
Reference in New Issue
Block a user