Repositioning FS text

This commit is contained in:
Luis Fernando Molina committed 2019-05-20 11:35:52 +02:00
1 parent bf28b5ee37
commit 158c642733
2 files changed
+5 -4

No files matched your search

+4 -3
View File
@@ -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)
}
}
+1 -1
View File
@@ -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
}