From 1dbb3b127eb763ea18dbcf035b5a010e8b2b23c4 Mon Sep 17 00:00:00 2001 From: "holger.trampe" Date: Thu, 12 Dec 2019 11:16:34 +0100 Subject: [PATCH] =?UTF-8?q?Bild=20Agentur=20gr=C3=B6=C3=9Fer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orga/templates/orga/orga_main.html | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/orga/templates/orga/orga_main.html b/orga/templates/orga/orga_main.html index b83c6e8..333091c 100644 --- a/orga/templates/orga/orga_main.html +++ b/orga/templates/orga/orga_main.html @@ -151,10 +151,18 @@ function setNodeTemplate(obj, diagram) { // create the image element to map the image data from the data source var image = new ej.diagrams.ImageElement(); - image.id = obj.id + '_pic'; - image.width = 50; image.height = 50; image.style.strokeColor = 'none'; - image.source = obj.data.imageUrl; - + + if(obj['properties']['data']['id'] == 'parent'){ + image.id = obj.id + '_pic'; + image.width = 250; image.height = image.width/2; image.style.strokeColor = 'none'; + image.source = obj.data.imageUrl; + } + else{ + image.id = obj.id + '_pic'; + image.width = 75; image.height = 75; image.style.strokeColor = 'none'; + image.source = obj.data.imageUrl; + } + // create the stack panel to append the text elements. var innerStack = new ej.diagrams.StackPanel(); innerStack.style.strokeColor = 'none'; @@ -164,7 +172,7 @@ function setNodeTemplate(obj, diagram) { // create the text element to map the name data from the data source var text = new ej.diagrams.TextElement(); text.style.bold = true; - text.fontSize = 16; + text.fontSize = 20; text.id = obj.id + '_name'; text.content = obj.data.name; @@ -178,6 +186,7 @@ function setNodeTemplate(obj, diagram) { // append the image and inner stack elements content.children = [image, innerStack]; + return content; }