Cockpit resize fixed

This commit is contained in:
Luis Fernando Molina committed 2020-02-10 09:39:36 +01:00
1 parent 0e731242f5
commit 2ea8355289
2 files changed
+13 -2

No files matched your search

+2 -2
View File
@@ -204,11 +204,11 @@ function newCanvas () {
break
}
case 120: { // F9
constructorParams = { format: 'gif', workersPath: 'externalScripts/', framerate: 12, name: 'Superalgos.video.capture'}
constructorParams = { format: 'gif', workersPath: 'externalScripts/', framerate: 8, name: 'Superalgos.video.capture'}
break
}
case 121: { // F10
constructorParams = { format: 'webm', framerate: 12, name: 'Superalgos.video.capture' }
constructorParams = { format: 'webm', framerate: 8, name: 'Superalgos.video.capture' }
break
}
default: return
+11
View File
@@ -80,6 +80,17 @@
function resize () {
thisObject.container.frame.width = browserCanvas.width
thisObject.container.frame.height = COCKPIT_SPACE_HEIGHT
switch (thisObject.status) {
case 'BOTTOM': {
thisObject.container.frame.position.y = browserCanvas.height - COCKPIT_SPACE_HEIGHT
break
}
case 'TOP': {
thisObject.container.frame.position.y = 0
break
}
}
}
function toTop () {