feat: add resize() to paragraph

This commit is contained in:
Hojjat 2026-03-19 17:10:25 -06:00 committed by Ashley Wulber
parent a3a434ac92
commit 70f54c994a

View file

@ -153,6 +153,11 @@ impl<P: Paragraph> Plain<P> {
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