具有非标准背景蒙版值的 YUI 模态面板

发布于 2024-08-07 20:54:33 字数 291 浏览 1 评论 0原文

我正在尝试在 YUI Tabview 上方设置模式 YUI 面板。出于 CSS 目的 [1],选项卡的 z 索引最高可达 20 左右(取决于选项卡的数量)。

我面临的问题是,YUI 为面板模式绘制的掩码位于选项卡具有的任何非零掩码后面,因此选项卡可以窥视。

到目前为止,我只找到 YUI API 方法来更改对话框或面板的掩码。

有谁知道我该如何做面膜?以前有人遇到过这样的问题吗?

我很快就会发布我使用的代码。

蒂亚!

[1](CSS设计师这样做了,所以我无法更改标记)

I am trying to setup a modal YUI panel above a YUI Tabview. For CSS purposes [1] the tabs have a z-index that goes up to about 20 (depending on how many tabs there are).

The problem I am facing is that the mask that YUI draws for the modality of the panel is behind whatever nonzero mask the tabs have, and so the tabs peek through.

So far I have only found YUI API methods to change the mask of the dialog or panel.

Does anyone know how I can do this for the mask? Has anyone had an issue like this before?

I will shortly be posting the code I used.

TIA!

[1] (CSS designer did this, so I can't change the markup)

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

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

发布评论

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

评论(2

莳間冲淡了誓言ζ 2024-08-14 20:54:33

解决办法是
- 显示/渲染顶部模态对话框后,为底层模态对话框调用 hideMask()
- 在取消顶部模态对话框之前,为底层模态对话框调用 showMask()

提示:如果太早和/或太晚调用隐藏/显示蒙版,则可能会在视觉上感受到蒙版“闪烁”。

The solution is
- after show/render of top modal dialog, call hideMask() for underlying modal dialog
- before canceling top modal dialog, call showMask() for underlying modal dialog

Tip: If calling hide/show mask too early and/or too late, mask "flashing" may be experienced visually.

握住我的手 2024-08-14 20:54:33

看起来配置值 zIndex(对于面板)与 stackMask 相结合应该可以做到这一点。

文档中没有关于是否应该在渲染之前或之后、显示之前或之后调用 stackMask 等内容。还有一个事件 (configzIndex) 在 zIndex 属性更改时触发。

Looks like configuration value zIndex (for the Panel) combined with the stackMask should do it.

Nothing in the docs about whether stackMask should be called before or after rendering, before or after show etc. There is also an event (configzIndex) which fires when the zIndex property is changed.

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