mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 04:40:03 -04:00
Add Align2::anchor_size (#3863)
This commit is contained in:
@@ -264,7 +264,7 @@ impl Shape {
|
||||
color: Color32,
|
||||
) -> Self {
|
||||
let galley = fonts.layout_no_wrap(text.to_string(), font_id, color);
|
||||
let rect = anchor.anchor_rect(Rect::from_min_size(pos, galley.size()));
|
||||
let rect = anchor.anchor_size(pos, galley.size());
|
||||
Self::galley(rect.min, galley, color)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user