diff options
Diffstat (limited to 'src/layout/text.rs')
| -rw-r--r-- | src/layout/text.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/text.rs b/src/layout/text.rs index 30995be0..6698a0fa 100644 --- a/src/layout/text.rs +++ b/src/layout/text.rs @@ -34,7 +34,7 @@ pub struct TextContext<'a> { /// primary-horizontal layouting is supported. pub axes: LayoutAxes, /// The alignment of the finished layout. - pub alignment: LayoutAlignment, + pub align: LayoutAlign, } /// Layouts text into a box. @@ -75,7 +75,7 @@ impl<'a> TextLayouter<'a> { Layout { dimensions: Size::new(self.width, self.ctx.style.font_size()), - alignment: self.ctx.alignment, + align: self.ctx.align, actions: self.actions.into_vec(), } } |
