feat: add resize() to paragraph
This commit is contained in:
parent
a3a434ac92
commit
70f54c994a
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue