From f234a5f3dfeec865ee090642a9cf969420686ea6 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 29 Apr 2019 11:36:07 +0200 Subject: [PATCH] Datetime BUG corrected --- Panels/ProductsPanel.js | 2 +- Scales/TimeScale.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Panels/ProductsPanel.js b/Panels/ProductsPanel.js index ce5fdbe11..45dc3deb1 100644 --- a/Panels/ProductsPanel.js +++ b/Panels/ProductsPanel.js @@ -41,7 +41,7 @@ thisObject.container.name = 'Layers @ ' + exchange + ' ' + market.assetB + '/' + market.assetA thisObject.container.frame.containerName = thisObject.container.name thisObject.container.frame.width = UI_PANEL.WIDTH.LARGE - thisObject.container.frame.height = viewPort.visibleArea.bottomLeft.y - viewPort.visibleArea.topLeft.y // UI_PANEL.HEIGHT.LARGE; + thisObject.container.frame.height = UI_PANEL.HEIGHT.LARGE // viewPort.visibleArea.bottomLeft.y - viewPort.visibleArea.topLeft.y // UI_PANEL.HEIGHT.LARGE; var position = { x: viewPort.visibleArea.topLeft.x, diff --git a/Scales/TimeScale.js b/Scales/TimeScale.js index 316e4ea3d..1516bcdef 100644 --- a/Scales/TimeScale.js +++ b/Scales/TimeScale.js @@ -178,7 +178,7 @@ to be visible at the top of the viewPort. */ y: point1.y - viewPort.margins.TOP } - let date = getDateFromPoint(point, thisObject.container, timeLineCoordinateSystem) + let date = getDateFromPoint(point, thisObject.container.parentContainer, timeLineCoordinateSystem) date = new Date(date) let label = date.toUTCString()