From 60c33f3fc00ebd340f933defa6b227b33db0b116 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 25 Dec 2020 13:50:31 +0100 Subject: [PATCH] Images appearing --- .../UI/Spaces/Docs-Space/DocsSpace.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index 77560a921..1d1aa07a8 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -2126,8 +2126,10 @@ function newSuperalgosDocSpace() { let imageElement = collectionImage.cloneNode() - //imageElement.width = "150" - //imageElement.height = "150" + if (imageItem.size !== undefined) { + imageElement.width = imageItem.size + imageElement.height = imageItem.size + } let hierarchyImageDiv = document.getElementById(imageItem.div) hierarchyImageDiv.appendChild(imageElement) @@ -3023,7 +3025,17 @@ function newSuperalgosDocSpace() { if (schemaDocument === undefined) { return } currentRow++ - let matrixValue = schemaDocument.type + + let imageItem = { + div: 'hierarchy-image-div-' + hierarchyImagesArray.length, + project: project, + type: schemaDocument.type, + size: 50 + } + let imageContainer = '
' + hierarchyImagesArray.push(imageItem) + + let matrixValue = imageContainer + '
' + addToolTips(schemaDocument.type) let matrixRow = contentMatrix[currentRow] matrixRow[currentColumn] = matrixValue