Move application of content mask and z-index into Interactivity::paint
This allows the content mask to correctly apply to bounds used in event handlers, which prevents content under opaque borders from being hovered in overflow hidden containers. Co-Authored-By: Antonio <antonio@zed.dev> Co-Authored-By: Max Brunsfeld <max@zed.dev>
This commit is contained in:
parent
fffb30ac6d
commit
15f16f08d9
4 changed files with 643 additions and 604 deletions
|
@ -537,6 +537,7 @@ impl Render for Dock {
|
|||
div()
|
||||
.flex()
|
||||
.border_color(cx.theme().colors().border)
|
||||
.overflow_hidden()
|
||||
.map(|this| match self.position().axis() {
|
||||
Axis::Horizontal => this.w(px(size)).h_full().flex_row(),
|
||||
Axis::Vertical => this.h(px(size)).w_full().flex_col(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue