Flex 4 滚动条皮肤无法调整大小
我正在开发 Flex 4 应用程序,并开始使用皮肤自定义界面以提供全新的外观。
因此,我在 Flash Catalyst 中创建了两个滚动条外观(一个水平的,一个垂直的)。
当我通过 Catalyst 测试该应用程序时,它工作得很好,因此我将其导入到 Flash Builder 上,复制组件并在 css 文件中为 HScrollbar 和 VScrollbar 定义新外观。
皮肤工作正常,所有按钮都正常。但是,由于某种原因,滚动条没有调整大小。无论它绑定的内容如何,它都保持在我设计的相同高度。
它以所有应该的方式滚动内容,但它不会调整大小,拇指也不会一直向下。
我还注意到以下几点。
我有一个充当列表的自定义组件。它扩展了 Group 并包含一个 Scroller。因此,在应用程序的一个地方,Scrollthumb 比使用相同自定义列表的另一地方要低。
我还必须提到,这个滚动条在没有自定义皮肤的情况下也能完美工作。
还有其他人有类似的问题吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好的,我知道您不久前发布了此内容,但我已经在互联网上搜索了好几天,寻找为什么滚动条的拇指不像默认滚动条那样缩放。
有几件事需要检查,首先,您的拇指皮肤是否有设定的高度?
如果没有,这就是我所忽略的,请转到滚动器皮肤,并在添加垂直和水平滚动条的位置将“fixedThumbSize”属性设置为 false。
Okay, I know you posted this a while ago but I have been scouring the internet for days looking for why the scrollbar's thumb wasn't scaling like the default scrollbar.
There are a couple things to check, first is there a set height on your thumb's skin?
If not, and this is what I was overlooking, go to your scroller skin and at the point where you add the vertical and horizontal scrollbar set the "fixedThumbSize" property to false.
我认为您的图形元素被定义为滚动条的每个部分(顶部箭头、底部箭头、轨道等...):在这种情况下,您应该检查元素尺寸是否不固定...它们应该在% 能够根据容器更改尺寸。
I suppose that your graphic elements are defined as every single part of the scrollbar (top arrow, bottom arrow, track, etc...): in this case you should check that the elements dimensions are not fixed... they should be in % to be able to change the dimensions based on the container.