when fitting image to its max width, take into account the mimeview column
authorPaul <paul@claws-mail.org>
Tue, 8 Sep 2020 12:00:09 +0000 (13:00 +0100)
committerPaul <paul@claws-mail.org>
Tue, 8 Sep 2020 12:00:09 +0000 (13:00 +0100)
src/gtk/gtkutils.c

index f09d5a84fd265456d37fa39b4102da88d29eaee2..0e8bf48915f42751e3ad364b74df98aef8377dc1 100644 (file)
@@ -1775,7 +1775,7 @@ GdkPixbuf *claws_load_pixbuf_fitting(GdkPixbuf *src_pixbuf, int box_width,
        w = gdk_pixbuf_get_width(pixbuf);
        h = gdk_pixbuf_get_height(pixbuf);
 
-       avail_width = box_width;
+       avail_width = box_width-32;
        avail_height = box_height;
                
        if (box_width != -1 && box_height != -1 && avail_width - 100 > 0) {