Handle tab drag end on pane items to insert after active item

Co-Authored-By: Kay Simmons <kay@zed.dev>
This commit is contained in:
Julia 2022-10-21 15:09:14 -04:00 committed by K Simmons
parent c295f943ba
commit b9f9819637
5 changed files with 66 additions and 24 deletions

View file

@ -42,9 +42,9 @@ impl Element for Stack {
cx: &mut PaintContext,
) -> Self::PaintState {
for child in &mut self.children {
cx.scene.push_layer(None);
child.paint(bounds.origin(), visible_bounds, cx);
cx.scene.pop_layer();
cx.paint_layer(None, |cx| {
child.paint(bounds.origin(), visible_bounds, cx);
});
}
}