Skip to content

Commit

Permalink
wrap text correctly
Browse files Browse the repository at this point in the history
their size is now multiplied by 10, and so should the bounds
  • Loading branch information
tomara-x committed May 8, 2024
1 parent b88ac7b commit 19b6346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/circles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ pub fn update_info_text(
for (id, info) in query.iter_mut() {
let t = trans_query.get_mut(id).unwrap();
if t.is_changed() || info.is_added() {
text_bounds.get_mut(info.0).unwrap().size.x = t.scale.x;
text_bounds.get_mut(info.0).unwrap().size.x = t.scale.x * 10.;
let t = t.translation;
trans_query.get_mut(info.0).unwrap().translation = t.xy().extend(t.z + 0.00001);
}
Expand Down

1 comment on commit 19b6346

@tomara-x
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which is true for font size 12, but.. lol

Please sign in to comment.