Tree ItemRenderer 不显示添加到渲染器中 BorderContainer 的微小 TitleWindows?

发布于 2024-10-21 19:01:12 字数 542 浏览 4 评论 0原文

我面临一些问题,我将一些标题窗口添加到ItemRenderer中。但有时树不会在树项目渲染器中显示那些微小的标题窗口..这是树重用其渲染器的问题.. (这些窗口的皮肤像小圆圈一样,并特定于项目渲染器的data添加。这些TitleWindows使用addElement()添加到s:BorderContainer 在渲染器中)

设置数据时添加这些窗口

public function set data(data:xml):void
{
// add windows
}

我在显示事件中

protected function ShowHandler(event:Event):void
{
// add windows
}

。有没有任何解决方案......每个可见的 ItemRenderer 中都有窗口...

I am facing some problem that I add some title widows to the ItemRenderer of tree. but some time tree don't show those tiny title windows in tree item-renderer.. is this the issue that tree re-use its renderers..
(these windows are skinned like little cricles, and added specific to the data of item renderer.. these TitleWindows are added using addElement() to a s:BorderContainer in the renderer)

i add these windoes when data is set in

public function set data(data:xml):void
{
// add windows
}

and on show event..

protected function ShowHandler(event:Event):void
{
// add windows
}

is there any solution that.. every visible ItemRenderer has the windows in it...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

好多鱼好多余 2024-10-28 19:01:12

现在弄清楚了..我正在删除创建完成时的所有元素..删除了它。现在效果很好。感谢您帮助大卫·戈沙泽……

figuered out now.. i was removing all elements at creationComplete .. removed that. now its working good. thanks for helping David Goshadze...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文