From c7ee2b393a369325b3578557e045f2ff94ceab8f Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 22 Jun 2019 12:51:06 +0200 Subject: =?UTF-8?q?Fix=20top-left=20text=20alignment=20=F0=9F=93=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/flex.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/layout/flex.rs') 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); -- cgit v1.2.3