Flex中重叠的Flare画布,如何将其夹到容器上?
当我尝试在我的应用程序中显示 FlareCanvas 时遇到严重问题。它根本不尊重边界(参见此处的图像)
我尝试过“clipContent”和有很多替代方案,但似乎没有什么可以阻止画布“通过”其容器。我应该怎么办?我花了好几个星期的时间!
在 Flex main.mxml 中:
<flexvis:FlareCanvas id="graph" width="800" height="600" verticalScrollPolicy="on" clipContent="true" horizontalScrollPolicy="on" />
FCACanvas 扩展的完整类 FlareCanvas 位于: https://github.com/prefuse/Flare/blob/master/flare/src-flex-integration/flare/flex/vis/FlareCanvas.as
I'm having a serious issue when trying to display a FlareCanvas within my application. It simply doesn't respect the bounds (see image here)
I've tried "clipContent" and a bunch of alternatives but nothing seems to prevent the canvas of being "passing" over its container. What should I do? It is taking me several weeks!
In Flex main.mxml:
<flexvis:FlareCanvas id="graph" width="800" height="600" verticalScrollPolicy="on" clipContent="true" horizontalScrollPolicy="on" />
The full class FlareCanvas which FCACanvas extends is in: https://github.com/prefuse/Flare/blob/master/flare/src-flex-integration/flare/flex/vis/FlareCanvas.as
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,用于 FlareCanvas 的代码并不完全是最好的。如果我是您,我只需将 FlareCanvas 包装到另一个容器中,该容器会剪辑内容来解决您的问题。
Yeah, the code used for FlareCanvas isn't exactly the best. If I were you, I'd just wrap the FlareCanvas into another container that would clip the contents to solve your problem.