diff --git a/app.js b/app.js index 93da6ce..f1438ae 100644 --- a/app.js +++ b/app.js @@ -409,18 +409,21 @@ function uiUpdateLayout() { w = h / 192 * 256; } left = (window.innerWidth - w) / 2; - top = h; + top = (window.innerHeight - h) / 2; } fbSize = [[w, h], [w, h]]; for (var i = 0; i < 2; i++) { screenCanvas[i].style = 'left:' + left + 'px;top:' + top + 'px;width:' + w + 'px;height:' + h + 'px;'; - top += h; } + var vkLayer = document.getElementById('vk-layer'); + vkLayer.style = 'left: 0; top: 0; width: 100%; height: 100%;'; + uiAdjustVKLayout(); } + function uiSwitchTo(mode) { if (mode == uiCurrentMode) { return