Skip to content

Pass on prop to parent in AnchoredDrawingArea #26059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

oscargus
Copy link
Member

@oscargus oscargus commented Jun 3, 2023

PR summary

Not sure if this is the right way to do it, but otherwise prop is unused... (It has been like this since the code first got in...)

PR checklist

@anntzer
Copy link
Contributor

anntzer commented Jun 19, 2023

Conceptually this is correct, though I wonder whether we should deprecate AnchoredDrawingArea/AnchoredAuxTransformBox for reasons similar to #25781 (the use case is more real, but there isn't really any benefit in squashing together the args of the two constructors -- you more or less need to understand how the two component classes (AnchoredOffsetbox & DrawingArea/AuxTransformBox) work to make use of the composite class.

@oscargus
Copy link
Member Author

I cannot say that I fully checked the surrounding code, just happened to notice that prop was unused.

But checking a bit more carefully I can agree that the benefit of having these wrapper classes is limited.

@oscargus oscargus marked this pull request as draft June 22, 2023 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants