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:
Mike Schwörer 2025-07-12 00:20:09 +02:00
parent 85f448527b
commit eb519cac68
No known key found for this signature in database
GPG Key ID: D3C7172E0A70F8CF

View File

@ -977,6 +977,9 @@ def populate_metadata_page(layout, db, book_id, bulk=False, two_column=False, pa
if is_comments:
layout.addLayout(l, row, column, layout_rows_for_comments, 1)
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
else:
layout.addLayout(l, row, column, 1, 1)