Fixing “stretched” XPage extension library Name Picker in IE?

大兔子大兔子 提交于 2019-12-02 20:42:57

问题


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

Fixing "stretched" XPage extension library dialog box in IE?

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.

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?


回答1:


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>


来源:https://stackoverflow.com/questions/10606922/fixing-stretched-xpage-extension-library-name-picker-in-ie

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!