Skip to content
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

Wrap EnvScope child in WidgetPod and pass down the new Env during layout. #1100

Merged
merged 3 commits into from
Jul 24, 2020

Conversation

luleyleo
Copy link
Collaborator

With this, EnvScope will wrap its child in a WidgetPod.

This means that debug_paint_layout and debug_widget_id will now apply to the widget they are called on (until now it would only apply to "the child's children"). For example calling one of those methods on a Button will now work. debug_widget_id will now show the root widget's id as well, which was not possible before.

Also, we've been passing down env instead of new_env during Widget::layout, now we are passing new_env.

This is necessary to make debug_paint_layout and debug_widget_id apply to the widget they are called on and not just their descendants.
@luleyleo luleyleo added the S-needs-review waits for review label Jul 22, 2020
@jneem jneem removed the S-needs-review waits for review label Jul 23, 2020
@luleyleo luleyleo merged commit f3ce232 into linebender:master Jul 24, 2020
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.

2 participants