Include constraints in element tree JSON debug output
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
f4538e9eb5
commit
f5752969ab
@@ -91,6 +91,6 @@ impl Element for ConstrainedBox {
|
||||
_: &Self::PaintState,
|
||||
ctx: &DebugContext,
|
||||
) -> json::Value {
|
||||
json!({"type": "ConstrainedBox", "constraint": self.constraint.to_json(), "child": self.child.debug(ctx)})
|
||||
json!({"type": "ConstrainedBox", "set_constraint": self.constraint.to_json(), "child": self.child.debug(ctx)})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user