From d4e337eeb396c3617a90932f5e16619b62cca2d1 Mon Sep 17 00:00:00 2001 From: LEv145 <40071054+LEv145@users.noreply.github.com> Date: Sat, 5 Aug 2023 16:31:28 +0200 Subject: [PATCH] Move vars --- src/utils/images_grid.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/images_grid.py b/src/utils/images_grid.py index 83d3b69..fba5131 100644 --- a/src/utils/images_grid.py +++ b/src/utils/images_grid.py @@ -97,6 +97,8 @@ def _create_grid_annotation( grid = grid_info.image left_padding = 0 + top_padding = 0 + if row_texts: left_padding = int( max( @@ -106,7 +108,6 @@ def _create_grid_annotation( ) + font.getlength(WIDEST_LETTER)*2 ) - top_padding = 0 if column_texts: top_padding = int(font.size * 2)