Bug fixes

This commit is contained in:
Luis Fernando Molina committed 2020-01-16 11:28:57 +01:00
1 parent 261fdbd599
commit 4e7dd306c4
2 files changed
+16 -1

No files matched your search

+9 -1
View File
@@ -27,6 +27,7 @@ function newProductsPanel () {
const LAYER_SEPARATION = 0
let panelTabButton
let visible = true
let heatherHeight = 60
let footerHeight = 15
let layerHeight = 90
@@ -135,6 +136,13 @@ function newProductsPanel () {
function panelSizePhysics () {
let viewPortHeight = viewPort.visibleArea.bottomLeft.y - viewPort.visibleArea.topLeft.y
if (viewPortHeight < heatherHeight) {
visible = false
} else {
visible = true
}
if (desiredPanelHeight > viewPortHeight) {
posibleVisibleLayers = Math.trunc((viewPortHeight - heatherHeight - footerHeight) / (layerHeight + LAYER_SEPARATION))
} else {
@@ -304,7 +312,7 @@ function newProductsPanel () {
}
function draw () {
if (isInitialized === false) { return }
if (isInitialized === false || visible === false) { return }
// thisObject.container.frame.draw(false, false, false, thisObject.fitFunction)
+7
View File
@@ -242,10 +242,14 @@ function newChartSpace () {
}
function initializeTimeMachine (node, syncWithDesignerLoop) {
if (node.payload === undefined) { return } // not ready to consider this Time Machine
if (node.payload.uiObject === undefined) { return }
let timeMachine = newTimeMachine()
timeMachine.syncWithDesignerLoop = syncWithDesignerLoop
timeMachine.payload = node.payload
timeMachine.nodeId = node.id
timeMachinesMap.set(node.id, timeMachine)
timeMachine.payload.uiObject.setValue('Loading...')
@@ -282,6 +286,9 @@ function newChartSpace () {
function childrenPhysics () {
for (let i = 0; i < thisObject.timeMachines.length; i++) {
let timeMachine = thisObject.timeMachines[i]
if (timeMachine.payload.node === undefined) {
continue
}
if (timeMachine.container.frame.isInViewPort()) {
timeMachine.physics()