diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-06-22 12:51:06 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-06-22 12:51:06 +0200 |
| commit | c7ee2b393a369325b3578557e045f2ff94ceab8f (patch) | |
| tree | 063e371b764b119e378644817cc556c397ebd9dd /src/layout/flex.rs | |
| parent | f6fe3b5cdd2805f3975985752f9cb0e04e3daf49 (diff) | |
Fix top-left text alignment 📐
Diffstat (limited to 'src/layout/flex.rs')
| -rw-r--r-- | src/layout/flex.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/flex.rs b/src/layout/flex.rs index f966eae2..730b876e 100644 --- a/src/layout/flex.rs +++ b/src/layout/flex.rs @@ -1,6 +1,6 @@ //! Flexible and lazy layouting of boxes. -use crate::doc::TextAction; +use crate::doc::LayoutAction; use crate::size::{Size, Size2D}; use super::{BoxLayout, ActionList, LayoutSpace, LayoutResult, LayoutError}; @@ -157,7 +157,7 @@ impl FlexFinisher { fn append(&mut self, layout: BoxLayout) { // Move all actions into this layout and translate absolute positions. self.actions.reset_origin(); - self.actions.add(TextAction::MoveAbsolute(self.cursor)); + self.actions.add(LayoutAction::MoveAbsolute(self.cursor)); self.actions.set_origin(self.cursor); self.actions.extend(layout.actions); |
