From 371896888371e27d5cb0fb49e97c9a05702673b0 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Thu, 26 Jan 2017 15:59:43 +0100 Subject: [PATCH] TreeRenderer: fix process/node distinction fixes #86 --- library/Businessprocess/Renderer/TreeRenderer.php | 4 ++-- public/css/module.less | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/library/Businessprocess/Renderer/TreeRenderer.php b/library/Businessprocess/Renderer/TreeRenderer.php index 6069122..741b5f5 100644 --- a/library/Businessprocess/Renderer/TreeRenderer.php +++ b/library/Businessprocess/Renderer/TreeRenderer.php @@ -117,7 +117,7 @@ class TreeRenderer extends Renderer if ($node->isHandled()) { $attributes->add('class', 'handled'); } - if ($node->hasChildren()) { + if ($node instanceof BpNode) { $attributes->add('class', 'operator'); } else { $attributes->add('class', 'node'); @@ -126,7 +126,7 @@ class TreeRenderer extends Renderer $tbody = $table->createElement('tbody'); $tr = $tbody->createElement('tr'); - if ($node->hasChildren()) { + if ($node instanceof BpNode) { $tr->createElement( 'th', array( diff --git a/public/css/module.less b/public/css/module.less index 249ec42..35b6030 100644 --- a/public/css/module.less +++ b/public/css/module.less @@ -211,7 +211,11 @@ table.bp.node.handled td > a:last-child, table.bp.node.ok td > a:last-child, table.bp th { border-left-width: 0.8em; - width: 1.2em; + width: 1.8em; +} + +table.process.missing th span { + display: none; } table.bp.handled > tbody > tr > th, table.bp.ok > tbody > tr > th {