From e293f2368b44f9bcddc45b5c3c83be00918904a1 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 26 Jun 2018 10:29:24 +0200 Subject: [PATCH] Change Button Position --- BottomSpace/DeleteTradingHistory.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BottomSpace/DeleteTradingHistory.js b/BottomSpace/DeleteTradingHistory.js index 51b43d8f1..4985f8b3b 100644 --- a/BottomSpace/DeleteTradingHistory.js +++ b/BottomSpace/DeleteTradingHistory.js @@ -15,7 +15,7 @@ function newDeleteTradingHistory() { thisObject.container.frame.width = 150; thisObject.container.frame.height = BOTTOM_SPACE_HEIGHT; - container.frame.position.x = 0; + container.frame.position.x = viewPort.visibleArea.topRight.x; container.frame.position.y = viewPort.visibleArea.bottomLeft.y; container.isDraggeable = false; @@ -44,6 +44,8 @@ function newDeleteTradingHistory() { function onClick() { + if (window.CURRENT_BOT_DISPLAY_NAME === "") { return; } + /* To delete the trading history we will follow these steps: @@ -254,6 +256,8 @@ function newDeleteTradingHistory() { function draw() { + if (window.CURRENT_BOT_DISPLAY_NAME === "") { return; } + thisObject.container.frame.draw(false, false); if (canDrawIcon === false) { return; }