]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Fix list scrollbar position miscalculation
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 8 Jan 2010 18:15:49 +0000 (19:15 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 8 Jan 2010 18:15:49 +0000 (19:15 +0100)
gfxmenu/gui_list.c

index ccf360ad314f7bcb4989a22615b9cb602c1561fd..8377bf4bb10a52d541f6da330a5110bfe3d1da5a 100644 (file)
@@ -327,7 +327,7 @@ list_paint (void *vself, const grub_video_rect_t *region)
       draw_scrollbar (self,
                      self->first_shown_index, num_shown_items,
                      0, self->view->menu->size,
-                     content_rect.width - box_right_pad
+                     self->bounds.width - box_right_pad
                      + self->scrollbar_width,
                      box_top_pad + self->item_padding,
                      content_rect.height - box_top_pad - box_bottom_pad);