mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-07 16:13:16 +00:00
Fix list scrollbar position miscalculation
This commit is contained in:
parent
ec647fb940
commit
b5c72e3b0f
@ -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 New Issue
Block a user