Fix flex layout cross-alignment when not filled

This commit is contained in:
Héctor Ramón Jiménez 2020-01-10 04:58:13 +01:00
parent 0a83024505
commit d1bf3f02c7
2 changed files with 9 additions and 1 deletions

View file

@ -44,6 +44,14 @@ impl Limits {
self.max
}
/// Returns the fill [`Size`] of the [`Limits`].
///
/// [`Limits`]: struct.Limits.html
/// [`Size`]: ../struct.Size.html
pub fn fill(&self) -> Size {
self.fill
}
/// Applies a width constraint to the current [`Limits`].
///
/// [`Limits`]: struct.Limits.html