From 158c64273312cc95f387e51a31ec6cab13e4be91 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 20 May 2019 11:35:52 +0200 Subject: [PATCH] Repositioning FS text --- CockpitSpace/FullScreen.js | 7 ++++--- CockpitSpace/RestartSimulation.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CockpitSpace/FullScreen.js b/CockpitSpace/FullScreen.js index f9caaf7e5..2218de0c0 100644 --- a/CockpitSpace/FullScreen.js +++ b/CockpitSpace/FullScreen.js @@ -41,7 +41,7 @@ function newFullScreen () { } function initialize () { - thisObject.container.frame.width = 250 + thisObject.container.frame.width = 50 thisObject.container.frame.height = COCKPIT_SPACE_HEIGHT - 12 selfMouseOverEventSubscriptionId = thisObject.container.eventHandler.listenToEvent('onMouseOver', onMouseOver) @@ -110,7 +110,7 @@ function newFullScreen () { } function positionPhysics () { - thisObject.container.frame.position.x = thisObject.container.parentContainer.frame.width * 0.70 + thisObject.container.frame.position.x = thisObject.container.parentContainer.frame.width - thisObject.container.frame.width thisObject.container.frame.position.y = 6 } @@ -155,7 +155,7 @@ function newFullScreen () { label = 'FS' let labelPoint = { - x: thisObject.container.frame.width / 2 - label.length / 2 * fontSize * FONT_ASPECT_RATIO - 25, + x: thisObject.container.frame.width / 2 - label.length / 2 * fontSize * FONT_ASPECT_RATIO, y: thisObject.container.frame.height - 9 } labelPoint = thisObject.container.frame.frameThisPoint(labelPoint) @@ -164,3 +164,4 @@ function newFullScreen () { browserCanvasContext.fillText(label, labelPoint.x, labelPoint.y) } } + diff --git a/CockpitSpace/RestartSimulation.js b/CockpitSpace/RestartSimulation.js index db8c9d22d..2a5776e23 100644 --- a/CockpitSpace/RestartSimulation.js +++ b/CockpitSpace/RestartSimulation.js @@ -173,7 +173,7 @@ function newRestartSimulation () { } function positionPhysics () { - thisObject.container.frame.position.x = thisObject.container.parentContainer.frame.width - thisObject.container.frame.width * 1.25 + thisObject.container.frame.position.x = thisObject.container.parentContainer.frame.width - thisObject.container.frame.width - 50 thisObject.container.frame.position.y = 6 }