summaryrefslogtreecommitdiffstats
path: root/native/src/layout/limits.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-10 04:58:13 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-01-10 04:58:13 +0100
commitd1bf3f02c7161e35e40f89fd0a6b3da9834a1616 (patch)
tree3e8959e536b7cab736d12236fa37d79b5238dc55 /native/src/layout/limits.rs
parent0a8302450557877cb667b51fc84383aaf0a11b02 (diff)
downloadiced-d1bf3f02c7161e35e40f89fd0a6b3da9834a1616.tar.gz
iced-d1bf3f02c7161e35e40f89fd0a6b3da9834a1616.tar.bz2
iced-d1bf3f02c7161e35e40f89fd0a6b3da9834a1616.zip
Fix flex layout cross-alignment when not filled
Diffstat (limited to '')
-rw-r--r--native/src/layout/limits.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/native/src/layout/limits.rs b/native/src/layout/limits.rs
index a35f7ff7..b674b58a 100644
--- a/native/src/layout/limits.rs
+++ b/native/src/layout/limits.rs
@@ -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