固定“拉伸"IE 中的 XPage 扩展库名称选择器? [英] Fixing "stretched" XPage extension library Name Picker in IE?

查看:25
本文介绍了固定“拉伸"IE 中的 XPage 扩展库名称选择器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dalie 想出了一个很好的解决方案来阻止在 IE 中出现时拉伸"到右侧的对话框.

Dalie came up with a great solution to stop the "stretched" to the right dialog boxes when they appear in IE.

修复拉伸"IE 中的 XPage 扩展库对话框?

Dalie 的解决方案是设置对话框的宽度.这很好用.但是现在我在扩展库名称选择器上遇到了同样的问题.它有一个我设置的宽度属性,但似乎没有解决问题.

Dalie's solution was to set the width of the dialog box. This worked great. But now I am having the same issue with the extension library Name Picker. It has a width property which I set but does not seem to solve the problem.

回顾一下,基本上在 IE 中的对话框都被拉伸"到了对话框的右边框.无论您将对话框移到何处,右侧都会保持固定.

To review, basically in IE dialog boxes are "stretched" all the way over to the right border of the dialog box. No matter where you move the dialog box the right side stays anchored in place.

这个问题有什么解决方案吗?

Any solution to this issue?

推荐答案

尝试通过将 X-UA-Compatible 标头设置为 IE=8(甚至 IE=Edge)来强制 IE 不使用兼容模式:

Try forcing IE not to use compatibility mode by setting the X-UA-Compatible header to IE=8 (or even IE=Edge):

<xp:this.beforeRenderResponse><![CDATA[#{javascript:  if (context.getUserAgent().isIE()) {
    var response = facesContext.getExternalContext().getResponse();
    response.setHeader("X-UA-Compatible", "IE=8");
  }}]]>
</xp:this.beforeRenderResponse>

这篇关于固定“拉伸"IE 中的 XPage 扩展库名称选择器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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