Trigger parentViewDidChange event. Fixes #2423
Add test for parentViewDidChange event.
Merge pull request #2864 from xtian/parent-view-did-change

Trigger parentViewDidChange event. Fixes #2423