> Question, why do you have a Panel inside a canvas inside a popup?
No reason, just the MXML component defaulted to Canvas, and I put a
Panel in there for aesthetic reasons. I have changed the root node of
the component to a Panel now :)
Anyway, it appears the issue is because the popup actually contains a
HDividedBox, and the component is in there. And it's the HDividedBox
that does not resize automatically (without it theres no resize problem).
I'll look into what controls this container type has, but in case
anyone has any suggestions the pseudocode is:
GroupsComponent.mxml
<Panel>
<HBox id="controls"> ...input fields, buttons etc ... </HBox>
<Button click="showHide()"/>
</Panel>
where the "controls" HBox is shown/hidden with addChild/removeChild
based on the button click.
PopupWindow.mxml
<Panel>
<HDividedBox>
<GroupsComponent />
<AnotherComponent />
</HDividedBox>
</Panel>
And the problem is that changes to the size of GroupsComponent does
not automatically update the size of the HDividedBox. Having code to
addChild/removeChild to the HDividedBox does then cause the size to be
read correctly.
Regards,
Grant Cox