Merge pull request #1700 from zed-industries/room

Introduce call-based collaboration
This commit is contained in:
Antonio Scandurra 2022-10-11 17:40:44 +01:00 committed by GitHub
commit a656047c15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
74 changed files with 7164 additions and 5222 deletions

View file

@ -1731,7 +1731,8 @@ impl Element for EditorElement {
layout: &mut Self::LayoutState,
cx: &mut PaintContext,
) -> Self::PaintState {
cx.scene.push_layer(Some(bounds));
let visible_bounds = bounds.intersection(visible_bounds).unwrap_or_default();
cx.scene.push_layer(Some(visible_bounds));
let gutter_bounds = RectF::new(bounds.origin(), layout.gutter_size);
let text_bounds = RectF::new(