Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2008/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css jsf primefaces对话框不能完全呈现内部布局_Css_Jsf_Jsf 2_Primefaces - Fatal编程技术网

Css jsf primefaces对话框不能完全呈现内部布局

Css jsf primefaces对话框不能完全呈现内部布局,css,jsf,jsf-2,primefaces,Css,Jsf,Jsf 2,Primefaces,我遇到了一个问题,当我想用布局和布局单元分割对话框时,只有一个10px的北部布局单元上部会被渲染。在渲染的小部分中,您可以向下滚动以查看north 12和center 12的值 <h:form id="mainDllg"> <p:dialog id="mainDlg" header="12" widgetVar="mainDlg" rendered=&

我遇到了一个问题,当我想用布局和布局单元分割对话框时,只有一个10px的北部布局单元上部会被渲染。在渲染的小部分中,您可以向下滚动以查看north 12和center 12的值

    <h:form id="mainDllg">
        <p:dialog id="mainDlg" header="12" widgetVar="mainDlg"
            rendered="true" closeOnEscape="true"
            style="width:99% !important; height:99% !important"
            resizable="false" modal="true">
            <p:outputPanel>

                <p:layout>
                    <p:layoutUnit position="north">12</p:layoutUnit>

                    <p:layoutUnit position="center">12</p:layoutUnit>
                </p:layout>
                
            </p:outputPanel>
        </p:dialog>
    </h:form>

您应该试试这个。

就是这样:我使用图形环境java lib实现了客户端屏幕大小,但在部署时遇到了问题。有没有一种方法可以直接在样式属性中使用JavaScript,比如min-width:screen.width px?
<h:form id="mainDllg">
        <p:dialog id="mainDlg" header="12" widgetVar="mainDlg"
            rendered="true" closeOnEscape="true"
            resizable="false" modal="true">
            <p:outputPanel>

                <p:layout style="min-width:400px;min-height:200px;">
                    <p:layoutUnit position="north" size="30">12</p:layoutUnit>

                    <p:layoutUnit position="center">12</p:layoutUnit>
                </p:layout>

            </p:outputPanel>
        </p:dialog>
    </h:form>