PrimeFaces organigram division issue

时间:2018-11-13 07:54:45

标签: primefaces

In PrimeFaces 6.2 organigram showcase, when I remove employees from Team Mobile division

Before

PrimeFaces Organigram - Team Mobile initial

After

PrimeFaces Organigram - Team Mobile no employees

it shows iOS division as a subdivision of Android.

Exected

PrimeFaces Organigram - Team Mobile no employees expected

I checked the options and I found no solution for this.

2 个答案:

答案 0 :(得分:3)

我在早期版本中遇到了同样的问题,只是添加了

  

skipLeafHandling =“ true”

到我的节点,所以每个节点的位置都像是一片叶子。

<p:organigramNode  type="division" skipLeafHandling="true" styleClass="division"
                    icon="ui-icon-suitcase" iconPos="left">
                    ....
                </p:organigramNode>

答案 1 :(得分:2)

这似乎是在同一级别上进行的“设计”和“崩溃”,而不是作为细分,因为两者之间没有任何界限。尝试将员工拖到已经包含员工的其他节点上。它使它们看起来完全相同

enter image description here

甚至是员工和空团队的组合。

enter image description here

如果要防止这种情况,请参阅@VitalijKochno的其他答案