Scrollbars没有出现在带有Flex 4.5.1的Spark Datagrid中,但确实以4.6出现



我有一个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> 

已解决。Flex 4.6的行为不同于4.5。

在Flex 4.5.1中,上面的皮肤将隐藏滚动器,因为这些皮肤部件可见= false。在Flex 4.6中,这将不是隐藏滚动器。我从该组件中删除了皮肤/选择器。

我相信,这是与4.6中引入的新的按需Scroller SDK有关的。

已经对滚动器进行了几种下层的增强功能。第一的 最重要的是,现在按需创建滚动条。这意味着你 应用程序不会花时间在创建卷轴上 内容直到内容滚动为止,从而导致视图创建 性能提升。[1]

[1] http://www.adobe.com/devnet/flex/articles/introducing-flex46sdk.html

最新更新