Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/26.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
Primefaces 仪表板列在仪表板面中消失_Primefaces - Fatal编程技术网

Primefaces 仪表板列在仪表板面中消失

Primefaces 仪表板列在仪表板面中消失,primefaces,Primefaces,仪表板无法按预期工作。在我的仪表板的第3列中只有一个面板。当我把它移到第二列时,第三列就消失了。然后,我无法将任何其他面板从文档移到第3列中 使用ui dashboard列样式类提供列宽,否则可能会出现空列 不接收新的小部件 因此,使用css样式为列指定宽度 .ui-dashboard-column { width: 200px; } 在Primefaces中,您可以在xhtml文件的头部部分看到此css样式: .ui-panel, div.ui-state-hover { m

仪表板无法按预期工作。在我的仪表板的第3列中只有一个面板。当我把它移到第二列时,第三列就消失了。然后,我无法将任何其他面板从文档移到第3列中

使用ui dashboard列样式类提供列宽,否则可能会出现空列 不接收新的小部件

因此,使用css样式为列指定宽度

.ui-dashboard-column {
    width: 200px;
}
在Primefaces中,您可以在xhtml文件的头部部分看到此css样式:

.ui-panel, div.ui-state-hover {
    margin: 10px;
    width:200px;
}

.ui-dashboard-column {
    width:220px;
}

这个css代码取代了@Geinmachi在回答中提出的建议,这对我很有帮助。

您好@Geinmachi它不起作用我之前试过这个,我的代码就像PrimeFaces演示中的一样,您使用的PrimeFaces是什么版本?如果它在showcase中起作用,但在您的情况下不起作用,那么您就有问题了,因此,发布代码。嗨@Geinmachi,我得到了一部分,现在我可以将面板放置在3列中的任何一列,但不可能将选项卡保留在需要放置在3列中的位置Y?