Skip to content

Commit 8115be4

Browse files
authored
Merge pull request #10 from LEv145/dev
v 2.5.1
2 parents 44365fa + 6c93712 commit 8115be4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/images_grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def _create_grid_annotation(
109109
+ font.getlength(WIDEST_LETTER)*2
110110
)
111111
if column_texts:
112-
top_padding = int(font.size * 2)
112+
top_padding = max(elem.count("\n") for elem in column_texts) * int(font.size) + int(font.size * 2)
113113

114114
image = Image.new(
115115
"RGB",

0 commit comments

Comments
 (0)