Greetings,
I have created a custom Flex widget by extending UIComponent that I call FlexMapBuilderWidget. I have overriden the various UIComponent methods for measurement, children, display list, etc.
I used this widget to replace a plain old Sprite so that I could add some layout based functionality. When the Sprite was there, I was able to get scrollbars using:
<s:Scroller width="100%" height="100%">
<s:Group width="100%" height="100%" clipAndEnableScrolling="true">
<gapView:MapBuilderWidget id="mapDisplay" />
</s:Group>
</s:Scroller>
But when I replace that Sprite with my custom UIComponent, I no longer get scrollbars:
<s:Scroller width="100%" height="100%">
<s:Group width="100%" height="100%" clipAndEnableScrolling="true">
<gapView:FlexMapBuilderWidget id="mapDisplay" />
</s:Group>
</s:Scroller>
Any idea why? I have done test output to check the reported size of the FlexMapBuilderWidget in its measure() and updateDisplayList() methods, the size is always reported as a large enough number to require scrollbars.
Thanks.