Skip to content

Commit

Permalink
Fix last_y for actions in list_view
Browse files Browse the repository at this point in the history
  • Loading branch information
filtsin committed Mar 22, 2023
1 parent 6335f79 commit 51603d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/draw/list_view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,18 +195,18 @@ where

if i == selected_item && has_subname {
if let Some(subname) = item.subname {
let y_offset = pos.y + entry_height + item_spacing;
font.draw(
dt,
subname,
font_size,
Point::new(
pos.x + self.params.action_left_margin,
pos.y + entry_height + item_spacing,
),
Point::new(end_pos.x, pos.y + entry_height + item_spacing),
Point::new(pos.x + self.params.action_left_margin, y_offset),
Point::new(end_pos.x, y_offset),
FontColor::Single(self.params.font_color.as_source()),
&draw_opts,
);

last_y = y_offset as u32;
}
}
}
Expand Down

0 comments on commit 51603d8

Please sign in to comment.