We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6335f79 commit 51603d8Copy full SHA for 51603d8
src/draw/list_view.rs
@@ -195,18 +195,18 @@ where
195
196
if i == selected_item && has_subname {
197
if let Some(subname) = item.subname {
198
+ let y_offset = pos.y + entry_height + item_spacing;
199
font.draw(
200
dt,
201
subname,
202
font_size,
- Point::new(
203
- pos.x + self.params.action_left_margin,
204
- pos.y + entry_height + item_spacing,
205
- ),
206
- 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),
207
FontColor::Single(self.params.font_color.as_source()),
208
&draw_opts,
209
);
+
+ last_y = y_offset as u32;
210
}
211
212
0 commit comments