]> git.proxmox.com Git - grub2.git/commitdiff
* grub-core/gfxmenu/gui_list.c: Minimal width fixed.
authorVladimir Testov <vladimir.testov@rosalab.ru>
Thu, 15 Aug 2013 12:10:45 +0000 (16:10 +0400)
committerVladimir Testov <vladimir.testov@rosalab.ru>
Thu, 15 Aug 2013 12:10:45 +0000 (16:10 +0400)
ChangeLog
grub-core/gfxmenu/gui_list.c

index d326b2d69dad4ee3c94f4d3a0f35cb192581e8b8..78972a4bef0c4bdb23b1ac845ee1ef272c266ea2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-08-15  Vladimir Testov  <vladimir.testov@gmail.com>
+
+       * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
+
 2013-08-14 Avik Sil <aviksil@in.ibm.com>
 
        * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
index d2e96a7b8f789099d43f22a7a778aa0734e4a19f..1c437c1703774b3a39008cacee675d7240cafca9 100644 (file)
@@ -422,7 +422,8 @@ list_get_minimal_size (void *vself, unsigned *width, unsigned *height)
       if (*width < width_s)
        *width = width_s;
 
-      *width += 2 * boxpad + box_left_pad + box_right_pad;
+      *width += 2 * boxpad + box_left_pad + box_right_pad
+                + self->item_icon_space + self->icon_width;
 
       /* Set the menu box height to fit the items.  */
       *height = (item_height * num_items