Include constraints in element tree JSON debug output

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2021-04-14 15:14:46 -07:00
co-authored by Nathan Sobo
parent f4538e9eb5
commit f5752969ab
2 changed files with 25 additions and 2 deletions
+1 -1
View File
@@ -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)})
}
}