render: separate text and item alignment
This commit is contained in:
1 parent
49541792ee
commit
bd9c161f55
4 files changed
+34
-33
No files matched your search
@@ -246,7 +246,7 @@ impl TextEngine {
|
||||
let rich = spans.iter().map(|(t, a)| (t.as_str(), a.to_attrs()));
|
||||
buffer.set_rich_text(&mut self.font_system, rich, Attrs::new().family(Family::Name(FAMILY)), Shaping::Advanced);
|
||||
|
||||
let align = match base.align_items {
|
||||
let align = match base.text_align {
|
||||
Some(taffy::AlignItems::CENTER) => Some(Align::Center),
|
||||
Some(taffy::AlignItems::FLEX_END) => Some(Align::End),
|
||||
_ => None,
|
||||
|
||||
Reference in new issue
Block a user