Images appearing

This commit is contained in:
Luis Fernando Molina committed 2020-12-25 13:50:31 +01:00
1 parent a6770e047c
commit 60c33f3fc0
1 file changed
+15 -3
@@ -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 = '<div id="' + imageItem.div + '" class="docs-hierarchy-image-container"/>'
hierarchyImagesArray.push(imageItem)
let matrixValue = imageContainer + '<br>' + addToolTips(schemaDocument.type)
let matrixRow = contentMatrix[currentRow]
matrixRow[currentColumn] = matrixValue