我有一个Spark DataGrid,当SDK为4.5或更早版本时,它不会显示Scrollbars。如果我将SDK设置为4.6,它们会正确显示。
有没有人看过这个或知道如何让滚动条正确显示?
这是我使用的CSS:
s|Scroll {
skinClass: ClassReference("view.skins.CustomScrollerSkin");
}
这基本上就是皮肤:
<!--- A horizontal scrollbar that lets you control the portion of data that is displayed
when there is too much data to fit horizontally in a display area.
The Scroller determines whether the horizontal ScrollBar is visible. -->
<fx:Component id="horizontalScrollBarFactory">
<s:HScrollBar visible="false" />
</fx:Component>
答案 0 :(得分:0)
解决。 Flex 4.6的行为不同于4.5。
在Flex 4.5.1中,上面的皮肤会隐藏滚动条,因为这些皮肤部分的可见= false。在Flex 4.6中,不隐藏滚动条。我从该组件中删除了皮肤/选择器。
这个原因是我认为与4.6中引入的较新的按需滚动SDK有关。
Scroller已经进行了几项深入的改进。第一 最重要的是,现在可以根据需要创建滚动条。这意味着你的 应用程序不会花时间预先创建滚动条 内容滚动之前的内容,导致视图创建 性能提升。 [1]
[1] http://www.adobe.com/devnet/flex/articles/introducing-flex46sdk.html