Skip to content

Render pane grid titlebar after body#1463

Merged
hecrj merged 1 commit into
iced-rs:masterfrom
tarkah:fix/pane-grid-render-order
Oct 17, 2022
Merged

Render pane grid titlebar after body#1463
hecrj merged 1 commit into
iced-rs:masterfrom
tarkah:fix/pane-grid-render-order

Conversation

@tarkah

@tarkah tarkah commented Oct 7, 2022

Copy link
Copy Markdown
Member

Super edge case fix, but it's not uncommon to draw something with renderer.with_layer (either manually or via canvas frame.with_clip) in the body of a pane, while at the same time having tooltips on something in the titlebar. Since tooltip uses with_layer instead of Overlay, but it's drawn before the body, this causes the tooltips to to be behind what's drawn on the pane body (no ideal).

I propose this is a fine solution until we have better layering support. I think it's way more likely that titlebar has some tooltip / layer that needs to be drawn over body than the other way around.

@hecrj hecrj added the improvement An internal improvement label Oct 17, 2022
@hecrj hecrj added this to the 0.5.0 milestone Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement An internal improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants