Flex:出现滚动条时面板容器会丢失 borderSkin(嵌入的 swf)
我一直在四处询问并疯狂地谷歌搜索,但无法弄清楚这一点。 我在 flex-AIR 应用程序中有一个带有 borderSkin 的面板 - 一个 @Embed swf 符号。一切看起来都很好,直到面板添加了足够的子项以值得滚动条,此时 borderSkin 消失,只留下默认的背景颜色。移除孩子们,边界皮肤又回来了。 swf 符号使用scale9 网格。
我做错了什么?有什么想法吗? 预先感谢,杰里米
I've been asking around and googling like crazy, but can't figure this one out.
I have a panel in a flex-AIR app with a borderSkin - an @Embed swf symbol. Everything looks good till the panel has enough children added to merit a scrollbar, at which point the borderSkin disappears, leaving only the default background color. Remove the children and the borderskin comes back. The swf symbol uses scale9 grids.
What am I doing wrong? Any ideas?
Thanks in advance, Jeremy
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我确实从朋友那里找到了答案。
显然,当应用自定义边框皮肤时,面板的背景颜色会自动消失。但是,当使用滚动条时,该背景会重新出现 - 白色是默认颜色 - 并填充整个面板。将面板的背景 alpha 设置为 0 可以解决该问题。
I did find the answer from a friend.
Apparently, the panel's background color disappears automatically when a custom borderskin is applied. However, when scrollbars are used, that background reappears - white being the default color - and fills the entire panel. Setting the panel's background alpha to 0 solves the problem.
我终于被骗了
我将面板放入一个盒子中,然后关闭面板的滚动策略。
希望它能有所帮助。
cdkey22
I finaly cheated.
I put my panel in a box and turned to off the scroll policy of my panel.
Hope it could help.
Cdkey22