From 70f54c994acb17aa247284366edc630d8514e23d Mon Sep 17 00:00:00 2001 From: Hojjat Date: Thu, 19 Mar 2026 17:10:25 -0600 Subject: [PATCH] feat: add resize() to paragraph --- core/src/text/paragraph.rs | 5 +++++ 1 file changed, 5 insertions(+) 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