Hello,
I have a custom scrollbar that controls a group as its viewport.
<s:HGroup>
<s:Group width="520" height="380" clipAndEnableScrolling="true" id="descriptionBox" >
<s:RichText text="Test Test Test Test Test Test Test "
width="490" textAlign="justify" fontFamily="Arial" fontSize="12" color="#999999" />
</s:Group>
<s:VScrollBar viewport="{descriptionBox}"
left="{descriptionBox.x + descriptionBox.width + 10}"
top="10"
height="{descriptionBox.height}"
fixedThumbSize="true"
skinClass="VScrollBarSkin"/>
</s:HGroup>
I want to make that scrollbar autohide when the contents of that group is not larger than the view, any idea how to do that generically (meaning that I dont want to depend on a component inside the viewport group)?
Thanks.