2
我在SkinnableDataContainer的自定義外觀內使用滾動條組件。我遇到了一個問題,即滾動條的大拇指停在大約50%的位置,但這實際上是可滾動區域的結尾。實際上,大拇指應該位於滾動軌道的底部。下面是滾動條的代碼:SparkDataContainer滾動條不滾動到容器底部
<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo" bottom="150" >
<!-- Properties of the parent ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<s:states>
<s:State name="normal" />
<s:State name="disabled" />
</s:states>
<!-- Metadata ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<fx:Metadata>
[HostComponent("spark.components.SkinnableDataContainer")]
</fx:Metadata>
<!-- UI components ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
<s:Rect left="0" right="0"
bottom="0" top="0"
radiusX="4" radiusY="4" >
<s:fill>
<s:SolidColor id="fillColor" color="0xEFEFEF"/>
</s:fill>
</s:Rect>
<s:Group width="905" height="395" id="mainGroup">
<s:Scroller left="10" right="10" top="4" bottom="10" >
<s:DataGroup id="dataGroup" />
</s:Scroller>
<s:Rect left="0" right="0" top="0" bottom="0">
<s:stroke>
<s:SolidColorStroke weight="1" color="0xD8D8D8"/>
</s:stroke>
</s:Rect>
</s:Group>
我自己也有類似的問題。尚未找到解決方案。 – bpanulla 2010-07-12 19:18:22
我也有同樣的問題... – verveguy 2010-09-14 04:22:49