打开弹出窗口而不滚动条

时间:2013-10-21 13:04:09

标签: javascript jquery html liferay liferay-aui

我正在使用js,jQuery库,在Liferay Portal网页中,当我弹出内容时,内容信息会突出显示窗口。

如果我想要一个滚动条来设置弹出窗口内的内容,我该怎么办?¿

这是我的代码......

function showpopup(id) {
    AUI().ready('aui-dialog','aui-dialog-iframe','liferay-portlet-url', function(A) {
        var url = Liferay.PortletURL.createRenderURL();
        url.setPortletId("56"); //  "Web Content Display" portlet ID
        url.setWindowState('pop_up');
        url.setParameter("_56_groupId", Liferay.ThemeDisplay.getScopeGroupIdOrLiveGroupId()); 
        url.setParameter("_56_articleId", id); // webcontent ID

        window.myDialog = new A.Dialog(
            {
                title: 'Web Content',
                height: 960,
                width: 1024,
                modal:true,
                centered: true,
            }
        ).plug(
            A.Plugin.DialogIframe,
            {
                uri: url.toString(),
                iframeCssClass: 'dialog-iframe'
            }
        ).render();
    });
}

图像有问题.. enter image description here

1 个答案:

答案 0 :(得分:1)

将此添加到您的css文件中:

.dialog-iframe{
    overflow-y: scroll;
}
相关问题