Val::resolve
doc comment fix (#18143)
# Objective Fix the doc comment for `Val::resolve`. It doesn't return a value in logical pixels unless the inputs are also in logical pixels.
This commit is contained in:
parent
cf18c346d8
commit
912de69cfb
@ -255,7 +255,8 @@ pub enum ValArithmeticError {
|
||||
}
|
||||
|
||||
impl Val {
|
||||
/// Resolves a [`Val`] to its value in logical pixels and returns this as an [`f32`].
|
||||
/// Resolves a [`Val`] from the given context values and returns this as an [`f32`].
|
||||
/// The [`Val::Px`] value (if present), `parent_size` and `viewport_size` should all be in the same coordinate space.
|
||||
/// Returns a [`ValArithmeticError::NonEvaluable`] if the [`Val`] is impossible to resolve into a concrete value.
|
||||
///
|
||||
/// **Note:** If a [`Val::Px`] is resolved, its inner value is returned unchanged.
|
||||
|
Loading…
Reference in New Issue
Block a user