3 Replies Latest reply on Jan 6, 2011 11:05 AM by Shongrunden

    Giving the ScrollBarThumb a fixed width



      Hi guys,


      I'm skinning a scrollbar and I'm having some problems width the ScrollBarThumb (the actual button on the scrollbar). I want to give it a fixed width but no matter what I try it always gives the Thumb a dynamic width.


      This is what I have in the skin class:



      <!---  The default skin class is HScrollBarThumbSkin.

                  @copy spark.components.supportClasses.TrackBase#thumb

                  @see spark.skins.spark.HScrollBarThumbSkin -->

          <s:Button id="thumb" width="20"

                    focusEnabled="false" visible.inactive="false"


      But it's not working, does anybody have an idea on how to give it a fixed width?