Labels Abajo a la Izquierda
This commit is contained in:
1 parent
8831c2e7c9
commit
eed69de3d4
4 files changed
+11
-11
No files matched your search
@@ -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);
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
+3
-3
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user