Skip to content

Commit

Permalink
Print inline layout computed size in debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Sep 17, 2024
1 parent 2d9915c commit 3ef084d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/dom/src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ impl Document {
.as_ref()
.unwrap();

println!("Size: {}x{}", inline_layout.layout.width(), inline_layout.layout.height());
println!("Text content: {:?}", inline_layout.text);
println!("Inline Boxes:");
for ibox in inline_layout.layout.inline_boxes() {
Expand Down

0 comments on commit 3ef084d

Please sign in to comment.