Skip to content

Commit

Permalink
Document when final_layout is rounded vs unrounded
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Jul 23, 2023
1 parent 30c7948 commit 0df67d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tree/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ pub(crate) struct NodeData {
/// layout to avoid errors from rounding already-rounded values. See <https://github.com/DioxusLabs/taffy/issues/501>.
pub(crate) unrounded_layout: Layout,

/// The final (possibly rounded) results of the layout computation
/// The final results of the layout computation.
/// These may be rounded or unrounded depending on what the `use_rounding` config setting is set to.
pub(crate) final_layout: Layout,

/// Should we try and measure this node?
Expand Down

0 comments on commit 0df67d0

Please sign in to comment.