Flex 3 PopupManager 出现问题

发布于 2024-09-28 05:32:03 字数 722 浏览 1 评论 0原文

我尝试在 Flex3 AIR 应用程序中使用 PopupManager 类来打开不同类型的面板,但遇到了一些问题。我使用如下方法打开所有面板。_windowParent

private function createPopUp(clazz:Class, modal:Boolean = false):IFlexDisplayObject
{
 var p:IFlexDisplayObject = IFlexDisplayObject(PopUpManager.createPopUp(_windowParent, clazz, modal));
 PopUpManager.centerPopUp(p);
 return p;
}

是对应用程序的 WindowedApplication 根对象的引用。我遇到了两种问题:

  1. 并非所有弹出窗口都显示为模态,即使我将 modal 参数设置为 true。如果我从另一个弹出面板中打开一个弹出面板,似乎会发生这种情况。

  2. 的下拉菜单在其父面板下方打开(即在面板的深度下方),因此组合框的菜单部分或完全被遮挡。

我已经为 PopUpManager.createPopUp() childList 参数尝试了不同的参数(例如 PopUpManagerChildList.APPLICATION),但这没有改变任何内容。

希望大家对这些问题有一些建议!

I'm trying to use the PopupManager class in a Flex3 AIR app to open different kinds of panels but I'm running into some problems with it. I'm using a method like the following with which all panels are opened ..

private function createPopUp(clazz:Class, modal:Boolean = false):IFlexDisplayObject
{
 var p:IFlexDisplayObject = IFlexDisplayObject(PopUpManager.createPopUp(_windowParent, clazz, modal));
 PopUpManager.centerPopUp(p);
 return p;
}

_windowParent is a reference to the application's WindowedApplication root object. I'm running into two kinds of problems with this:

  1. Not all popups appear modal, even if I set the modal parameter to true. This seems to happen if I open a popup panel from within another popup panel.

  2. In some of the popup panels are ComboBoxes and the popdown menu of the comboboxes opens underneath of their parent panel (i.e. under the depth of the panel) so the menu of the combobox becomes partly or fully obstructed.

I've tried different parameters for the PopUpManager.createPopUp() childList parameter (e.g. PopUpManagerChildList.APPLICATION) but that did not change anything.

Hoping that anyone has some tips on these problems!

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

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

发布评论

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

评论(1

飘过的浮云 2024-10-05 05:32:03

没关系!我发现了一些代码可以改变面板的深度,从而搞砸了。

Nevermind! Figured out I some code that would change the depth of panels that was messing this up.

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