From acb72dba6717e519a648ec24909bf87e3f5d6a4d Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 30 May 2018 21:49:16 +0200 Subject: [PATCH] Top Space above all --- Canvas.js | 2 +- Panels/TimeControlPanel.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Canvas.js b/Canvas.js index 00ef2dabe..e9bcd1e96 100644 --- a/Canvas.js +++ b/Canvas.js @@ -119,13 +119,13 @@ function newCanvas() { /* Here we add all the functions that will be called during the animation cycle. */ - animation.addCallBackFunction("Top Space", thisObject.topSpace.draw, onFunctionAdded); animation.addCallBackFunction("Chart Space", thisObject.chartSpace.draw, onFunctionAdded); animation.addCallBackFunction("Floating Space", thisObject.floatingSpace.floatingLayer.physicsLoop, onFunctionAdded); animation.addCallBackFunction("Panels Space", thisObject.panelsSpace.draw, onFunctionAdded); animation.addCallBackFunction("Splash Screen", splashScreen.draw, onFunctionAdded); animation.addCallBackFunction("ViewPort Animate", viewPort.animate, onFunctionAdded); animation.addCallBackFunction("ViewPort Draw", viewPort.draw, onFunctionAdded); + animation.addCallBackFunction("Top Space", thisObject.topSpace.draw, onFunctionAdded); animation.start(onStart); function onFunctionAdded(err) { diff --git a/Panels/TimeControlPanel.js b/Panels/TimeControlPanel.js index 0f4fa5344..b00aba1cc 100644 --- a/Panels/TimeControlPanel.js +++ b/Panels/TimeControlPanel.js @@ -36,7 +36,7 @@ function newTimeControlPanel() { let position = { x: (viewPort.visibleArea.topRight.x - viewPort.visibleArea.topLeft.x) / 2 - thisObject.container.frame.width / 2, - y: viewPort.visibleArea.topLeft.y + y: viewPort.visibleArea.bottomLeft.y - thisObject.container.frame.height }; thisObject.container.frame.position = position;