I got it to work and it looks pretty good...

here's a kewl lil piece of code that I'm using in the Accordion "change" event to keep the Accordion scrolling as users select diff tabs

this.vPosition = acc.getStyle("headerHeight") * (event.newValue - 1);

where (this) referes to the VBox container with the scroll bar and (acc) refers to the Accordion and (event.newValue) is the index of the tab that was clicked on in the Accordion

I use the (-1) to always show a tab above the last selected view...

it's kind of kewl...


On 6/27/05, Gordon Smith <[EMAIL PROTECTED]> wrote:

Maybe they'd listen if you told them somebody at Macromedia said it's bad UI. ; )  Don't tell them I'm not on the User Experience team.

 

I guess you'll have to start by overriding Accordion's measure() and layoutChildren() methods.

 

- Gordon

 


From: [email protected] [mailto: [email protected]] On Behalf Of Clint Modien
Sent: Monday, June 27, 2005 3:59 PM
To: [email protected]
Subject: Re: [flexcoders] Scrollable Accordion

 

That was my suggestion as well... the "creative direction* disagreed...  *shurgs* cest la vie... I've always loved a challenge anyway...

On 6/27/05, Gordon Smith <[EMAIL PROTECTED]> wrote:

My suggestion is to not do it. ; ) It doesn't seem like good UI to me.

 

- Gordon

 


From: [email protected] [mailto: [email protected]] On Behalf Of Clint Modien
Sent: Monday, June 27, 2005 2:30 PM


To: [email protected]
Subject: [flexcoders] Scrollable Accordion

 

Is there anyway to make a scrollable accordion?

Trying to do it now with a repeater and a layout like this

<mx:Repeater>
  <mx:VBox>
    <mx:HBox id="header" height="20">
            < stuff in here >
    </mx:HBox>
    <mx:HBox id="detail" height="0" creationPolicy="none" >
            < stuff in here >
    </mx:HBox>
  </mx:VBox>
</mx:Repeater>


and when they click on the header it shows the detail...  it's not really working...

Basically I'm trying to fake a scrollable accordion.

One other way I thought that I might be able to get away with this is putting the accordion in a vbox.

Anyone got some ideas for me?


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com



YAHOO! GROUPS LINKS

 

 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to