From eed69de3d4c823d7ead8d3bd207c5c320b77e6ea Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sun, 21 Oct 2018 14:20:45 +0200 Subject: [PATCH] Labels Abajo a la Izquierda --- TopSpace/CurrentBot.js | 6 +++--- TopSpace/CurrentProcess.js | 6 +++--- TopSpace/CurrentStartMode.js | 4 ++-- TopSpace/DevTeam.js | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/TopSpace/CurrentBot.js b/TopSpace/CurrentBot.js index 34ca61f2b..c85fd4528 100644 --- a/TopSpace/CurrentBot.js +++ b/TopSpace/CurrentBot.js @@ -12,10 +12,10 @@ function newCurrentBot() { container.initialize(); thisObject.container = container; - thisObject.container.frame.width = 200; + thisObject.container.frame.width = 100; thisObject.container.frame.height = TOP_SPACE_HEIGHT; - container.frame.position.x = viewPort.visibleArea.topRight.x - thisObject.container.frame.width * 3; + container.frame.position.x = viewPort.visibleArea.topLeft.x + thisObject.container.frame.width * 1; container.frame.position.y = viewPort.visibleArea.bottomLeft.y; container.isDraggeable = false; @@ -121,7 +121,7 @@ function newCurrentBot() { if (label === undefined) { label = "" }; let point = { - x: 250, + x: thisObject.container.frame.width / 2 - label.length / 2 * fontSize / 3, y: (thisObject.container.frame.height / 2) + 12 }; point = thisObject.container.frame.frameThisPoint(point); diff --git a/TopSpace/CurrentProcess.js b/TopSpace/CurrentProcess.js index fa88e0cc9..790997ba5 100644 --- a/TopSpace/CurrentProcess.js +++ b/TopSpace/CurrentProcess.js @@ -12,10 +12,10 @@ function newCurrentProcess() { container.initialize(); thisObject.container = container; - thisObject.container.frame.width = 130; + thisObject.container.frame.width = 100; thisObject.container.frame.height = TOP_SPACE_HEIGHT; - container.frame.position.x = viewPort.visibleArea.topRight.x - thisObject.container.frame.width * 2; + container.frame.position.x = viewPort.visibleArea.topLeft.x + thisObject.container.frame.width * 2; container.frame.position.y = viewPort.visibleArea.bottomLeft.y; container.isDraggeable = false; @@ -114,7 +114,7 @@ function newCurrentProcess() { if (label === undefined) { label = "" }; let point = { - x: thisObject.container.frame.width * 1 / 3, + x: thisObject.container.frame.width / 2 - label.length / 2 * fontSize / 3, y: (thisObject.container.frame.height / 2) + 12 }; diff --git a/TopSpace/CurrentStartMode.js b/TopSpace/CurrentStartMode.js index 3fe0c9c22..04e27bb31 100644 --- a/TopSpace/CurrentStartMode.js +++ b/TopSpace/CurrentStartMode.js @@ -12,10 +12,10 @@ function newCurrentStartMode() { container.initialize(); thisObject.container = container; - thisObject.container.frame.width = 130; + thisObject.container.frame.width = 100; thisObject.container.frame.height = TOP_SPACE_HEIGHT; - container.frame.position.x = viewPort.visibleArea.topRight.x - thisObject.container.frame.width * 1; + container.frame.position.x = viewPort.visibleArea.topLeft.x + thisObject.container.frame.width * 3; container.frame.position.y = viewPort.visibleArea.bottomLeft.y; container.isDraggeable = false; diff --git a/TopSpace/DevTeam.js b/TopSpace/DevTeam.js index 7e87bd6ae..48e8ae7e8 100644 --- a/TopSpace/DevTeam.js +++ b/TopSpace/DevTeam.js @@ -12,10 +12,10 @@ function newDevTeam() { container.initialize(); thisObject.container = container; - thisObject.container.frame.width = 200; + thisObject.container.frame.width = 100; thisObject.container.frame.height = TOP_SPACE_HEIGHT; - container.frame.position.x = viewPort.visibleArea.topRight.x - thisObject.container.frame.width * 4; + container.frame.position.x = viewPort.visibleArea.topLeft.x + thisObject.container.frame.width * 0; container.frame.position.y = viewPort.visibleArea.bottomLeft.y; container.isDraggeable = false; @@ -104,7 +104,7 @@ function newDevTeam() { let fontSize = 12; let point = { - x: 300, + x: thisObject.container.frame.width / 2 - label.length / 2 * fontSize / 3, y: (thisObject.container.frame.height / 2) + 12 };