From eb519cac686b6d17939af44dfacbd480a598aacb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sat, 12 Jul 2025 00:20:09 +0200 Subject: [PATCH] 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. --- src/calibre/gui2/custom_column_widgets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/calibre/gui2/custom_column_widgets.py b/src/calibre/gui2/custom_column_widgets.py index 48cfe386e9..9666b72695 100644 --- a/src/calibre/gui2/custom_column_widgets.py +++ b/src/calibre/gui2/custom_column_widgets.py @@ -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)