summaryrefslogtreecommitdiff
path: root/src/layout/flex.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/flex.rs')
-rw-r--r--src/layout/flex.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/layout/flex.rs b/src/layout/flex.rs
index 13901968..d984860a 100644
--- a/src/layout/flex.rs
+++ b/src/layout/flex.rs
@@ -1,5 +1,7 @@
use super::*;
+/// The flex layouter first arranges boxes along a primary and if necessary also
+/// along a secondary axis.
#[derive(Debug, Clone)]
pub struct FlexLayouter {
axes: LayoutAxes,
@@ -22,7 +24,7 @@ enum FlexUnit {
#[derive(Debug, Clone)]
struct FlexLine {
usable: Size,
- actions: LayoutActionList,
+ actions: LayoutActions,
combined_dimensions: Size2D,
}
@@ -30,7 +32,7 @@ impl FlexLine {
fn new(usable: Size) -> FlexLine {
FlexLine {
usable,
- actions: LayoutActionList::new(),
+ actions: LayoutActions::new(),
combined_dimensions: Size2D::zero(),
}
}