diff --git a/src/layout/incremental.rs b/src/layout/incremental.rs index 60486d2f6..cbd553301 100644 --- a/src/layout/incremental.rs +++ b/src/layout/incremental.rs @@ -251,7 +251,7 @@ impl Constraints { } /// Changes all constraints by adding the `size` to them if they are `Some`. - pub fn mutate(&mut self, size: Size, regions: &Regions) { + pub fn inflate(&mut self, size: Size, regions: &Regions) { for spec in [ &mut self.min, &mut self.max, diff --git a/src/layout/pad.rs b/src/layout/pad.rs index 619bee41b..31571bb3b 100644 --- a/src/layout/pad.rs +++ b/src/layout/pad.rs @@ -31,7 +31,7 @@ impl Layout for PadNode { let prev = std::mem::take(&mut frame.item); new.push_frame(origin, prev); - frame.constraints.mutate(padding.size(), ®ions); + frame.constraints.inflate(padding.size(), ®ions); if self.padding.left.is_relative() || self.padding.right.is_relative() { frame.constraints.base.horizontal = Some(regions.base.width);