Maybe put the ButtonBar in a Scroller or put a Scroller in the ButtonBar skin?


On 5/11/10 1:14 AM, "bhaq1972" <[email protected]> wrote:






I have a spark ButtonBar with a horizontalLayout. The width of the ButtonBar is 
small ...so the end buttons don't show.
When I set the selectedIndex to one of the end buttons...its not coming into 
view.

How can I ensure the selectedItem is in view?

thanks

<s:HGroup>
 <s:ButtonBar id="buttonbar1" width="500" requireSelection="true">
 <s:layout>
 <s:HorizontalLayout />
 </s:layout>
 <s:dataProvider>
 <s:ArrayCollection source="['Button1', 'Button2', 'Button3', 'Button4', 
'Button5', 'Button6', 'Button7', 'Button8']" />
 </s:dataProvider>
 </s:ButtonBar>
 <s:TextInput id="t1" text="7"/>
 <s:Button label="selectIndex" click="buttonbar1.selectedIndex = 
Number(t1.text)"/>
</s:HGroup>






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to