diff options
| author | Alex Saveau <saveau.alexandre@gmail.com> | 2023-04-23 05:37:11 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-23 14:37:11 +0200 |
| commit | fd5e5b1ebb74b776f6e7f60998e239da5e6bbb61 (patch) | |
| tree | cd537872bce85ad5f49798da80b4d4b0dd634a96 | |
| parent | b75cad2d3be07c1e9d2e3e3a5e576603506f8d2f (diff) | |
Add note to measure function about being in infinite space (#927)
| -rw-r--r-- | library/src/layout/measure.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/library/src/layout/measure.rs b/library/src/layout/measure.rs index 3bd11ce6..0b7b9ee7 100644 --- a/library/src/layout/measure.rs +++ b/library/src/layout/measure.rs @@ -3,6 +3,8 @@ use crate::prelude::*; /// Measure the layouted size of content. /// /// The `measure` function lets you determine the layouted size of content. +/// Note that an infinite space is assumed, therefore the measured height/width +/// may not necessarily match the final height/width of the measured content. /// The same content can have a different size depending on the styles that /// are active when it is layouted. For example, in the example below /// `[#content]` is of course bigger when we increase the font size. |
