Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[C] Make sure all children are parented #831

Merged
merged 2 commits into from Mar 22, 2017
Merged

[C] Make sure all children are parented #831

merged 2 commits into from Mar 22, 2017

Conversation

StephaneDelcroix
Copy link
Member

@StephaneDelcroix StephaneDelcroix commented Mar 22, 2017

Description of Change

If Layout.InternalChildren are added in the base ctor, the event handler isn't connected yet, and the parenting code isn't executed.

So, all children added directly or indirectly through implicit styles (handled in base ctor) are orphans. This fix gives a foster parent to those children. They'll get as much love as natural borns, but they'll still be a bit different, and I have no code to fix that.

NOTE: this is a regression introduced by a fix for the previewer, and it needs to be backported to 2.3.4

Bugs Fixed

API Changes

/

Behavioral Changes

/

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of master at time of PR
  • Changes adhere to coding standard
  • Consolidate commits as makes sense

@samhouts samhouts merged commit 8cc9137 into master Mar 22, 2017
@samhouts samhouts deleted the fix-53381 branch March 22, 2017 16:09
rmarinho pushed a commit that referenced this pull request Mar 22, 2017
* unit test

* [C] make sure all children are properly parented
@samhouts samhouts added this to the 2.3.4 milestone Jun 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants