mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
Fix(egui): underlines are always drawn below the first line of text
This commit is contained in:
@@ -244,8 +244,10 @@ fn paint_underlines(
|
||||
row.size.x
|
||||
};
|
||||
|
||||
let offset_y = placed_row.pos.y + row.size.y;
|
||||
|
||||
painter.line_segment(
|
||||
[pos + vec2(left, row.size.y), pos + vec2(right, row.size.y)],
|
||||
[pos + vec2(left, offset_y), pos + vec2(right, offset_y)],
|
||||
stroke,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user