DioxusLabs / taffy

A high performance rust-powered UI layout library
https://docs.rs/taffy
Other
2.04k stars 102 forks source link

Output computed margins in `Layout` #678

Closed nicoburns closed 2 months ago

nicoburns commented 2 months ago

Objective

It is useful for users of Taffy to be able to determine the sizes the computed margin for each node. This is especially the case when auto margins are specified and margin cannot easily be determined just from the styles.

Context

Padding and border are already output in the Layout.