mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Change comment rows under 'Custom metadata' to grow with the window.
This changes all comment-rows in the 'Custom metadata' tab in the "Edit metadata" window to grow in height with the window. Comment rows are rows with datatype=comments custom fields (= multi-line fields) The minimal height is still maintained. If there are multiple rows with multi-line fields, they all grow.
This commit is contained in:
parent
85f448527b
commit
eb519cac68
@ -977,6 +977,9 @@ def populate_metadata_page(layout, db, book_id, bulk=False, two_column=False, pa
|
|||||||
if is_comments:
|
if is_comments:
|
||||||
layout.addLayout(l, row, column, layout_rows_for_comments, 1)
|
layout.addLayout(l, row, column, layout_rows_for_comments, 1)
|
||||||
layout.setColumnStretch(column, 100)
|
layout.setColumnStretch(column, 100)
|
||||||
|
# All multiline fields should grow with the window
|
||||||
|
for i in range(layout_rows_for_comments):
|
||||||
|
layout.setRowStretch(row + i, 100)
|
||||||
row += layout_rows_for_comments
|
row += layout_rows_for_comments
|
||||||
else:
|
else:
|
||||||
layout.addLayout(l, row, column, 1, 1)
|
layout.addLayout(l, row, column, 1, 1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user