views:

194

answers:

1

Hello guys...

I'm working on a Flex 4 application and I started customizing the interface with skins to give a whole new look.

So, I've created two scrollbar skins in Flash Catalyst (one horizontal, one vertical).

Its working great when I test the application through Catalyst so I took it and imported it on Flash Builder, copied the components and defined the new skins in my css file for the HScrollbar and VScrollbar.

The skin is working, all the buttons are ok. But, the scrollbar isnt resizing for some reason. It remains in the same height I've designed it to be regardless of the content it is bound to.

It scrolls the content in all the ways it should be but it doesnt resize and the thumb isnt getting all the way down.

Also I've noticed the following.

I have a custom component acting as a list. It extends Group and contains a Scroller. So at one place of the application the Scrollthumb is getting lower than on another place where the same custom list is used.

I also have to mention that this scroller works perfectly without a custom skin.

Anyone else having similar problems?

A: 

Yeah; I have the same problems, and I can't find anywhere that addresses this specific issue. Scrollbar skins are supposed to auto-resize unless you have the individual components (track, thumb, etc) set to specific heights/widths (as opposed to giving them minHeight/minWidth), but I haven't been able to make it work no matter what I do.

Have you gotten this figured out yet?

Space_Pope
I dont know how exactly but I'managed to make it work.Firstly, I've coded from scratch all the skin parts inside Flash Builder. For some reason, as soon as I did that and all the extra code from catalyst was gone, it worked(almost). I've also made sure that I payed a lot of attention in the constrain properties when I used the FXG syntax.Then I had another problem, sometimes when I was animating a container which included a scroller, the scrollbar was dissapearing.The solution to that was to set minHeight,maxHeight,minWidth and maxWidth to the parts.I hope it does. :)
NickDF
I actually got it to work myself earlier today (keeping the components from FC) and meant to post the exact combination of parameters (mostly heights set at 100% for the components and a minHeight for the thumb, with a couple caveats), but I forgot to post before I left work. I'll try to remember to post tomorrow, if you're interested.
Space_Pope