From f6ff5e72693780a52b1dd89239c31ee1377e268b Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Mon, 25 Mar 2024 12:40:06 +0100 Subject: [PATCH] rearrange stuff --- hui/src/layout.rs | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/hui/src/layout.rs b/hui/src/layout.rs index 3744009..064e3bc 100644 --- a/hui/src/layout.rs +++ b/hui/src/layout.rs @@ -86,17 +86,15 @@ pub enum Size { #[default] Auto, - /// Size as a ratio of parent size\ - /// Valid range: 0.0-1.0 (0-100%) - /// - /// Out of range values are allowed, but are not guaranteed to work as expected\ - /// (especially with negative values) - Relative(f32), - - //TODO FractionRemaining(f32), - /// Static size in pixels Absolute(f32), + + /// Size as a ratio of parent element size + /// + /// Expected range: `0.0..=1.0` + Relative(f32), + + //TODO Remaining(f32) } impl From for Size {