1
0
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:
umajho
2026-04-11 19:53:13 +08:00
parent b830bb1f54
commit c3f2e39ba5

View File

@@ -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,
);
}