From 975892ac4d8e8a7fec89fe07ffb31e0ece2650e6 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sun, 12 May 2019 11:37:43 +0200 Subject: [PATCH] Trying to avoid anoying moving effect --- TradingSimulationPanel.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TradingSimulationPanel.js b/TradingSimulationPanel.js index 067a29576..0427a9c10 100644 --- a/TradingSimulationPanel.js +++ b/TradingSimulationPanel.js @@ -263,8 +263,8 @@ function newAAMastersPlottersTradingSimulationTradingSimulationTradingSimulation yOffset = -40 labelPoint = { - x: viewPort.visibleArea.bottomLeft.x - xOffset + (paramsArray[1].LEFT_OFFSET - paramsArray[0].LEFT_OFFSET) / 2 + paramsArray[0].LEFT_OFFSET - 20, - y: viewPort.visibleArea.bottomLeft.y - yOffset + x: 0 - xOffset + (paramsArray[1].LEFT_OFFSET - paramsArray[0].LEFT_OFFSET) / 2 + paramsArray[0].LEFT_OFFSET - 20, + y: BOTTOM_SPACE_POSITION - BOTTOM_SPACE_HEIGHT/ 2 - yOffset }; browserCanvasContext.fillStyle = 'rgba(' + UI_COLOR.WHITE + ', ' + OPACITY + ')'; @@ -280,8 +280,8 @@ function newAAMastersPlottersTradingSimulationTradingSimulationTradingSimulation const OPACITY = 1; let centerPoint = { - x: viewPort.visibleArea.bottomLeft.x + params.LEFT_OFFSET, - y: viewPort.visibleArea.bottomLeft.y + x: params.LEFT_OFFSET, + y: BOTTOM_SPACE_POSITION - BOTTOM_SPACE_HEIGHT / 2 } browserCanvasContext.beginPath();