Bug panels dissapearing

This commit is contained in:
Luis Fernando Molina committed 2020-03-28 09:38:05 +01:00
1 parent 6cf4572595
commit 6c94160155
1 file changed
+3 -1
+3 -1
View File
@@ -227,7 +227,7 @@ function newLayersPanel () {
}
function panelSizePhysics () {
if (isInitialized === false || thisObject.visible === false || thisObject.isHidden === true) { return }
if (isInitialized === false || thisObject.isHidden === true) { return }
let viewPortHeight = canvas.chartingSpace.viewport.visibleArea.bottomLeft.y - canvas.chartingSpace.viewport.visibleArea.topLeft.y
@@ -237,6 +237,8 @@ function newLayersPanel () {
thisObject.visible = true
}
if (thisObject.visible === false) { return }
if (desiredPanelHeight > viewPortHeight) {
posibleVisibleLayers = Math.trunc((viewPortHeight - headerHeight - footerHeight) / (layerHeight + LAYER_SEPARATION))
} else {