固定“拉伸"IE 中的 XPage 扩展库对话框? [英] Fixing "stretched" XPage extension library dialog box in IE?

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

问题描述

在 IE 中显示对话框时,它似乎向右拉伸.我知道这可能有一个临时解决方案?任何人都可以提供修复吗?

When a dialog box is displayed in IE, it appears to stretch to the right. I understand there might be a temporary fix for this? Can anyone provide that fix?

推荐答案

我们遇到了同样的问题,通过指定对话框的宽度解决了.这可以防止它向右伸展.此外,不要忘记关闭 Firebug 控制台,如果您的对话框包含大量内容,它也会扭曲对话框.

We encountered the same problem and solved it by specifying the width of the dialog. This prevents it from stretching to the right. In addition, don't forget to close your Firebug console, if your dialog contains a fair amount of content, it distorts the dialog as well.

要重现效果,您可以复制/粘贴下面的代码,向其中添加几段文本并从对话框中删除指定的宽度.

To reproduce the effect you can copy/paste the code below, add a couple of paragraphs of text to it and remove the specified width from the dialog.

<xp:button value="Show Dialog" id="button1">
    <xp:eventHandler event="onclick" submit="false">
        <xp:this.script><![CDATA[XSP.openDialog("#{id:dialog1}");]]></xp:this.script>
    </xp:eventHandler>
</xp:button>

<xe:dialog id="dialog1" title="Dialog title" style="width:800px;">
    <xe:dialogContent>
        <p>Lorem ipsum ... </p>
    </xe:dialogContent>
    <xe:dialogButtonBar>
        <xp:button value="Ok" id="button1" styleClass="lotusFormButton">
            <xp:eventHandler event="onclick" submit="false">
                <xp:this.script><![CDATA[XSP.closeDialog('#{id:dialog1}')]]></xp:this.script>
            </xp:eventHandler>
        </xp:button>
        <xp:link id="link1" text="Cancel" styleClass="lotusAction">
            <xp:eventHandler event="onclick" submit="false">
                <xp:this.script><![CDATA[XSP.closeDialog('#{id:dialog1}')]]></xp:this.script>
            </xp:eventHandler>
        </xp:link>
    </xe:dialogButtonBar>
</xe:dialog>

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

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