Flex 3 PopupManager 出现问题
我尝试在 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 根对象的引用。我遇到了两种问题:
并非所有弹出窗口都显示为模态,即使我将 modal 参数设置为 true。如果我从另一个弹出面板中打开一个弹出面板,似乎会发生这种情况。
- 的下拉菜单在其父面板下方打开(即在面板的深度下方),因此组合框的菜单部分或完全被遮挡。
我已经为 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:
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.
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没关系!我发现了一些代码可以改变面板的深度,从而搞砸了。
Nevermind! Figured out I some code that would change the depth of panels that was messing this up.