From caeab4e89e519cea6b5c905f363db384e1a04065 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Sat, 24 Oct 2026 10:09:27 +0700 Subject: [PATCH] #703: an explicit size edit detaches a binding made under the short names w and h too, as it does width and height --- crates/engine/src/cmd/styles.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/engine/src/cmd/styles.rs b/crates/engine/src/cmd/styles.rs index dd93bac3..cb85ed5a 100644 --- a/crates/engine/src/cmd/styles.rs +++ b/crates/engine/src/cmd/styles.rs @@ -1010,8 +1010,8 @@ fn bound_field(n: &Node, field: &str) -> Option { let cl = &n.child_layout; let pad = |i: usize| layout.and_then(|l| l.padding.get(i).copied()); Some(match field { - "width" => format!("{}", n.width), - "height" => format!("{}", n.height), + "width" | "w" => format!("{}", n.width), + "height" | "h" => format!("{}", n.height), "minWidth" => format!("{:?}", cl.min_w), "maxWidth" => format!("{:?}", cl.max_w), "minHeight" => format!("{:?}", cl.min_h),