mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
fix vertical scrollbar drawing offet bug
This commit is contained in:
parent
ed797e6a82
commit
26464d4266
1 changed files with 2 additions and 1 deletions
|
|
@ -474,7 +474,8 @@ impl ScrollableList {
|
|||
let length = ((rows_shown as f32 / self.max_rows as f32) * self.pane.borrow().height() as f32)
|
||||
as isize;
|
||||
let offset = ((self.scroll_offset.1 as f32 / self.max_rows as f32)
|
||||
* self.pane.borrow().height() as f32) as isize;
|
||||
* self.pane.borrow().height() as f32) as isize
|
||||
+ self.pane.borrow().tl().y;
|
||||
let mut v_rect = Rectangle::new(
|
||||
Point::new(self.pane.borrow().br().x - 3, self.pane.borrow().tl().y),
|
||||
self.pane.borrow().br(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue