Skip to content

Comments

Fix inset colorbar frame reflow for refaspect#593

Draft
cvanelteren wants to merge 6 commits intomainfrom
fix/inset-colorbar-refaspect
Draft

Fix inset colorbar frame reflow for refaspect#593
cvanelteren wants to merge 6 commits intomainfrom
fix/inset-colorbar-refaspect

Conversation

@cvanelteren
Copy link
Collaborator

Closes #592
With refaspect, the inset colorbar geometry is finalized during draw. Previously, we were reflowing the inset frame too late (effectively after draw scheduling), so some render paths used stale bounds and the frame no longer wrapped the label correctly.

The fix moves frame reflow into the actual draw path and runs it before artists are painted, using the active renderer. We also mark inset colorbars as needing reflow when created, so the frame is recomputed at the right time. That makes the frame/label layout deterministic across backends and preserves correct wrapping with refaspect.

A regression test was added to lock this behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inset colorbar's title is out of the frame with refaspect

1 participant