diff --git a/core/src/text/paragraph.rs b/core/src/text/paragraph.rs index ecc55bad..fe459047 100644 --- a/core/src/text/paragraph.rs +++ b/core/src/text/paragraph.rs @@ -153,6 +153,11 @@ impl Plain

{ self.raw.min_height() } + /// Resizes the underlying [`Paragraph`] to the given bounds. + pub fn resize(&mut self, new_bounds: Size) { + self.raw.resize(new_bounds); + } + /// Returns the cached [`Paragraph`]. pub fn raw(&self) -> &P { &self.raw