From 3ee6dcc5c7ac8f9f9cfa70a3f355dfa3075bb2be Mon Sep 17 00:00:00 2001 From: ClementTsang Date: Thu, 30 Dec 2021 22:44:21 -0500 Subject: [PATCH] update basic config --- src/constants.rs | 4 ++-- src/tuine/component/base/flex/mod.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/constants.rs b/src/constants.rs index 56d8b2ab..668a4ab5 100644 --- a/src/constants.rs +++ b/src/constants.rs @@ -475,7 +475,7 @@ pub const DEFAULT_BASIC_LAYOUT: &str = r##" ratio = 0 [[row.child]] [[row.child.child]] - length = 1 + height = 1 type = "empty" [[row]] ratio = 0 @@ -496,7 +496,7 @@ pub const DEFAULT_BASIC_BATTERY_LAYOUT: &str = r##" [[row]] [[row.child]] [[row.child.child]] - length = 1 + height = 1 type = "empty" [[row]] [[row.child]] diff --git a/src/tuine/component/base/flex/mod.rs b/src/tuine/component/base/flex/mod.rs index 13a77e36..d4262069 100644 --- a/src/tuine/component/base/flex/mod.rs +++ b/src/tuine/component/base/flex/mod.rs @@ -204,7 +204,6 @@ impl TmpComponent for Flex { // children here! let mut current_x_offset = 0; let mut current_y_offset = 0; - sizes .iter() .zip(children.iter_mut())