AJAX ModalPopup 弹出(下方)页面内容(负 z-index) [英] AJAX ModalPopup Pops Behind (Under) Page Content (Negative z-index)

查看:23
本文介绍了AJAX ModalPopup 弹出(下方)页面内容(负 z-index)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 AJAX 控制工具包 (http) 的 40412 版中遇到了 AJAX ModalPopupExtender 的问题://ajaxcontroltoolkit.codeplex.com/releases/view/43475).

I am having an issue with the AJAX ModalPopupExtender in version 40412 of the AJAX Control Toolkit (http://ajaxcontroltoolkit.codeplex.com/releases/view/43475).

ModalPopup 第一次可见时,它可以正常工作.z-index 设置为 6001(背景 Div 的 z-index 设置为 6000)并且弹出窗口显示在其他所有内容之上.如果单击 ModalPopup 中的取消按钮,它也具有正确的功能,显示设置为无"并且 ModalPopup 不再可见.

The first time the ModalPopup is made visible it works correctly. The z-index is set to 6001 (and the background Div's z-index is set to 6000) and the Popup appears above everything else. If the cancel button within the ModalPopup is clicked, it also has the correct functionality, the display is set to "none" and the ModalPopup is no longer visible.

但是,当再次触发 Popup 时,z-index 仅设置为 2000,这仍然高于其他所有内容,但如果取消并再次触发,则设置为 -2000,即不可见(z-index 每次减少 4000).

However, when the Popup is triggered again, the z-index is only set to 2000 which is still visible above everything else, but if it is canceled and triggered again it is set to -2000 which is not visible (the z-index is decreasing by 4000 each time).

我不确定为什么会发生这种情况.任何想法如何解决它?

I'm not sure why this is happening. Any ideas how to fix it?

特殊情况:

  • 页面上有多个 ModalPopup.
  • 所有 ModalPopups 都是通过部分页面回发(使用 .Show() 方法)在代码隐藏中触发的
  • ModalPopupExtender 位于显示为弹出窗口的同一 UpdatePanel 中

更新:这是项目团队确认的错误.http://ajaxcontroltoolkit.codeplex.com/workitem/26739.现在已经修复.

UPDATE: this was a confirmed bug by the project team. http://ajaxcontroltoolkit.codeplex.com/workitem/26739. It has now been fixed.

推荐答案

这是项目团队确认的错误.http://ajaxcontroltoolkit.codeplex.com/workitem/26739.现在已经修复.

This was a confirmed bug by the project team. http://ajaxcontroltoolkit.codeplex.com/workitem/26739. It has now been fixed.

来自团队:我们已确认这是初始版本 40412 中的错误.我们现在已替换为修复此问题的修改版本.请重新下载40412以解决此问题

From Team: We have confirmed that this is a bug that was in the initial release 40412. We have now replaced with a modified release that fixes this. Please download 40412 again to resolve this issue

这篇关于AJAX ModalPopup 弹出(下方)页面内容(负 z-index)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆