Decide whether to clip to visible bounds on a per-element basis
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
eb711cde53
commit
45d118f96f
8 changed files with 18 additions and 12 deletions
|
@ -726,6 +726,8 @@ impl Element for TerminalElement {
|
|||
layout: &mut Self::LayoutState,
|
||||
cx: &mut gpui::PaintContext,
|
||||
) -> Self::PaintState {
|
||||
let visible_bounds = bounds.intersection(visible_bounds).unwrap_or_default();
|
||||
|
||||
//Setup element stuff
|
||||
let clip_bounds = Some(visible_bounds);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue