summaryrefslogtreecommitdiff
path: root/src/thumbnail.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/thumbnail.c')
-rw-r--r--src/thumbnail.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/thumbnail.c b/src/thumbnail.c
index f7a31c6..86d254b 100644
--- a/src/thumbnail.c
+++ b/src/thumbnail.c
@@ -265,6 +265,10 @@ void init_thumbnail_mode(void)
get_index_string_dim(file, td.font_main, &fw, &fh);
if (fw > td.text_area_w)
td.text_area_w = fw;
+ if (fh > td.text_area_h) {
+ td.text_area_h = fh + 5;
+ td.thumb_tot_h = opt.thumb_h + td.text_area_h;
+ }
}
if (td.text_area_w > opt.thumb_w)
td.text_area_w += 5;