mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-31 15:49:48 +00:00
#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:
1 parent
86e39cc9c0
commit
caeab4e89e
1 file changed
+2
-2
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user