Kevincosme / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

ButtonScrollingCanvas can't create its children when used inside components #47

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Create a new MXML component.
2. Place a ButtonScrollingCanvas instance in the component.
3. Place some additional controls within the ButtonScrollingCanvas.
4. Place the newly created MXML component in your application.
5. When the ButtonScrollingCanvas creates its children it will fail deep in
the mx.core.Container code with an error related to finding child "id's" on
documents.

What version of the product are you using? Latest.

This is fixed by adding this line when the innerCanvas is new'd:

innerCanvas.document = this.document;

Otherwise innerCanvas has a null document, which causes it to use the root
document, the application, to find all ID properties.

Original issue reported on code.google.com by troy.gil...@gmail.com on 11 Aug 2007 at 3:16

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 8 Sep 2007 at 10:39

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 9 Sep 2007 at 1:40

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 25 Dec 2007 at 2:38