bug in positioning at the top

This commit is contained in:
Luis Fernando Molina committed 2020-02-10 12:35:39 +01:00
1 parent 8716798206
commit 6a6da5c2dd
1 file changed
+4 -4
+4 -4
View File
@@ -87,14 +87,14 @@
break
}
case 'TOP': {
thisObject.container.frame.position.y = 0
thisObject.container.frame.position.y = TOP_SPACE_HEIGHT
break
}
}
}
function toTop () {
thisObject.container.frame.position.y = 0
thisObject.container.frame.position.y = COCKPIT_SPACE_HEIGHT
}
function toBottom () {
@@ -148,8 +148,8 @@
canvas.floatingSpace.makeVisible()
}
if (thisObject.container.frame.position.y < browserCanvas.height * 0.5 / 100) {
thisObject.container.frame.position.y = 0
if (thisObject.container.frame.position.y < browserCanvas.height * 0.5 / 100 + TOP_SPACE_HEIGHT) {
thisObject.container.frame.position.y = TOP_SPACE_HEIGHT
thisObject.status = 'TOP'
canvas.panelsSpace.visible = false
} else {