简体   繁体   English

jsf primefaces对话框无法完全显示内部布局

[英]jsf primefaces dialog does not render completely with layout inside

i got the problem that when i want to split up my dialog with layout and layoutunits only an 10px upper part from the north layout unit becomes rendered. 我遇到的问题是,当我想用​​layout和layoutunits拆分对话框时,只有北部布局单元的10px上部被渲染。 in that little part which is rendered you can scroll down to see the value of north "12" and center "12". 在渲染的那一部分中,您可以向下滚动以查看北“ 12”和中心“ 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>

输出

<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>

You should try this. 您应该尝试一下。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM