bug in positioning at the top
This commit is contained in:
1 parent
8716798206
commit
6a6da5c2dd
1 file changed
+4
-4
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user