Primefaces 6 对话框:可调整大小不起作用
Primefaces 6 dialog: resizable does not work
我的代码:
<h:body class="login-body">
<p:dialog widgetVar="mainAddDialog" resizable="true" header="TEST"
modal="true">
<h:form>
<p:commandButton value="TEST CMD"></p:commandButton>
</h:form>
</p:dialog>
<p:commandButton onclick="PF('mainAddDialog').show();"></p:commandButton>
并且对话框无法调整大小!
感谢任何建议!
这发生在我的项目中。我使用 the Manhattan theme 和 Primefaces 7
我认为问题是来自主题的css。
body .ui-dialog .ui-resizable-handle {
display: none !important; }
如果我覆盖这些规则,它就可以正常工作。
body .ui-dialog .ui-resizable-handle {
display: block !important;
}
我的代码:
<h:body class="login-body">
<p:dialog widgetVar="mainAddDialog" resizable="true" header="TEST"
modal="true">
<h:form>
<p:commandButton value="TEST CMD"></p:commandButton>
</h:form>
</p:dialog>
<p:commandButton onclick="PF('mainAddDialog').show();"></p:commandButton>
并且对话框无法调整大小! 感谢任何建议!
这发生在我的项目中。我使用 the Manhattan theme 和 Primefaces 7
我认为问题是来自主题的css。
body .ui-dialog .ui-resizable-handle {
display: none !important; }
如果我覆盖这些规则,它就可以正常工作。
body .ui-dialog .ui-resizable-handle {
display: block !important;
}