fix(ui): resize correctly without pane-frames (#673)

This commit is contained in:
Brooks Rady 2021-08-30 16:25:37 +01:00 committed by GitHub
parent faaa425b7f
commit 588fcc69be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,7 +172,9 @@ impl Pane for TerminalPane {
fn render_full_viewport(&mut self) { fn render_full_viewport(&mut self) {
// this marks the pane for a full re-render, rather than just rendering the // this marks the pane for a full re-render, rather than just rendering the
// diff as it usually does with the OutputBuffer // diff as it usually does with the OutputBuffer
self.frame.replace(PaneFrame::default()); if self.frame.is_some() {
self.frame.replace(PaneFrame::default());
}
self.grid.render_full_viewport(); self.grid.render_full_viewport();
} }
fn selectable(&self) -> bool { fn selectable(&self) -> bool {