#703: an explicit size edit detaches a binding made under the short names w and h too, as it does width and height

This commit is contained in:
bflatastic
2026-10-24 10:09:27 +07:00
parent 86e39cc9c0
commit caeab4e89e
+2 -2
View File
@@ -1010,8 +1010,8 @@ fn bound_field(n: &Node, field: &str) -> Option<String> {
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),