diff --git a/Projects/Foundations/UI/Spaces/Floating-Space/UiObjectTitle.js b/Projects/Foundations/UI/Spaces/Floating-Space/UiObjectTitle.js index f83b80933..97502e50f 100644 --- a/Projects/Foundations/UI/Spaces/Floating-Space/UiObjectTitle.js +++ b/Projects/Foundations/UI/Spaces/Floating-Space/UiObjectTitle.js @@ -359,6 +359,15 @@ function newUiObjectTitle() { let fontSize = thisObject.payload.floatingObject.currentFontSize let label + let schemaDocument = getSchemaDocument(thisObject.payload.node) + if (UI.projects.foundations.spaces.floatingSpace.inMapMode === true) { + if (schemaDocument.inMapMode !== undefined) { + if (schemaDocument.inMapMode.smallText === true) { + fontSize = fontSize * 0.8 + } + } + } + browserCanvasContext.font = fontSize + 'px ' + UI_FONT.PRIMARY if (radius > 6 && (thisObject.isOnFocus === true || thisObject.allwaysVisible === true || thisObject.isDefault === false)) { @@ -383,7 +392,6 @@ function newUiObjectTitle() { labelPoint.x = labelPoint.x - getTextWidth(label) / 2, labelPoint.y = labelPoint.y - 35 - let schemaDocument = getSchemaDocument(thisObject.payload.node) if (schemaDocument !== undefined) { if (schemaDocument.isHierarchyHead !== true && schemaDocument.isProjectHead !== true) { return diff --git a/Projects/Governance/Schemas/App-Schema/user-profile.json b/Projects/Governance/Schemas/App-Schema/user-profile.json index e38abf54a..1ebf25da4 100644 --- a/Projects/Governance/Schemas/App-Schema/user-profile.json +++ b/Projects/Governance/Schemas/App-Schema/user-profile.json @@ -80,6 +80,7 @@ "inMapMode": { "showNodeType": false, "showHierarchyHeadRing": false, - "smallIcon": true + "smallIcon": true, + "smallText": true } } \ No newline at end of file