Fix list scrollbar position miscalculation
This commit is contained in:
parent
ec647fb940
commit
b5c72e3b0f
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ list_paint (void *vself, const grub_video_rect_t *region)
|
||||||
draw_scrollbar (self,
|
draw_scrollbar (self,
|
||||||
self->first_shown_index, num_shown_items,
|
self->first_shown_index, num_shown_items,
|
||||||
0, self->view->menu->size,
|
0, self->view->menu->size,
|
||||||
content_rect.width - box_right_pad
|
self->bounds.width - box_right_pad
|
||||||
+ self->scrollbar_width,
|
+ self->scrollbar_width,
|
||||||
box_top_pad + self->item_padding,
|
box_top_pad + self->item_padding,
|
||||||
content_rect.height - box_top_pad - box_bottom_pad);
|
content_rect.height - box_top_pad - box_bottom_pad);
|
||||||
|
|
Loading…
Reference in a new issue