We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b8b626 commit 41c44a4Copy full SHA for 41c44a4
src/terminal.rs
@@ -582,7 +582,11 @@ pub struct Frame<'a> {
582
impl Frame<'_> {
583
/// The size of the current frame
584
///
585
- /// This is guaranteed not to change when rendering.
+ /// This is guaranteed not to change during rendering, so may be called multiple times.
586
+ ///
587
+ /// If your app listens for a resize event from the backend, it should ignore the values from
588
+ /// the event for any calculations that are used to render the current frame and use this value
589
+ /// instead as this is the size of the buffer that is used to render the current frame.
590
pub fn size(&self) -> Rect {
591
self.viewport_area
592
}
0 commit comments