royibernthal Posted August 9, 2017 Share Posted August 9, 2017 I'm trying to execute this simple code: var scrollingContainer = new PIXI.UI.ScrollingContainer({ scrollY: true, width: 100, height: 200 }); this.scrollingContainer.addChild(new PIXI.Container()); The last line throws an error: Quote Container.js:70 Uncaught TypeError: Cannot read property 'parent' of undefined at Container.addChild (Container.js:70) at ScrollingContainer.UIBase.addChild (UIBase.js:321) at ScrollingContainer.addChild (ScrollingContainer.js:103) If I try to add a sprite instead of a container, everything works as expected - no errors are thrown. I also created an issue in the repo: https://github.com/pixijs/pixi-ui/issues/11 EDIT: Solved in the github issue. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.