mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-28 16:00:58 +00:00
Fix the vertical alignment of the label in the switch component
This commit is contained in:
parent
42130dc530
commit
6a7fe30d88
@ -308,7 +308,7 @@ fn draw_at(
|
||||
let text_pos = switch_rect.right_top()
|
||||
+ vec2(
|
||||
ui.spacing().item_spacing.x,
|
||||
(switch_rect.height() - galley.rect.height()) / 2.0,
|
||||
(switch_rect.height() - galley.rect.height()) / 2.0 + 0.5,
|
||||
);
|
||||
ui.painter().galley_with_override_text_color(
|
||||
text_pos,
|
||||
|
Loading…
Reference in New Issue
Block a user