Fix hover popovers showing up over zoomed panels

This commit is contained in:
Mikayla 2024-01-19 14:52:49 -08:00
parent 7620feb8b2
commit eaa0e93112
No known key found for this signature in database

View File

@ -1218,9 +1218,11 @@ impl EditorElement {
popover_origin.x = popover_origin.x + x_out_of_bounds;
}
cx.break_content_mask(|cx| {
hover_popover.draw(popover_origin, available_space, cx)
});
if cx.was_top_layer(&popover_origin, cx.stacking_order()) {
cx.break_content_mask(|cx| {
hover_popover.draw(popover_origin, available_space, cx)
});
}
current_y = popover_origin.y - HOVER_POPOVER_GAP;
}