From 74db6a82efc73a8fcaa0c368009fcde4f5ac7912 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Wed, 3 Jul 2019 17:09:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/page/VNCDisplay.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/public/react/src/modules/page/VNCDisplay.js b/public/react/src/modules/page/VNCDisplay.js index 1e443ed1d..fd52fef07 100644 --- a/public/react/src/modules/page/VNCDisplay.js +++ b/public/react/src/modules/page/VNCDisplay.js @@ -108,6 +108,17 @@ class VNCDisplay extends Component { rfb.addEventListener("desktopname", updateDesktopName); // Set parameters that can be changed on an active connection rfb.viewOnly = readQueryVariable('view_only', false); + // TODO scale + // https://github.com/novnc/noVNC/issues/1181 + // http://localhost:3007/tasks/et8zqfkh9lsn + /** + https://www.shiyanlou.com/courses/?fee=free&page_size=20&category=Linux%E8%BF%90%E7%BB%B4&tag=%E5%85%A8%E9%83%A8&sort=default&preview=false + 参考实验楼实现方式: + div position: relative; width: 744.9px; height: 558.675px; + div position: relative; width: 1152px; height: 864px; transform-origin: 0px 0px; transform: scale(0.646615, 0.646615); + div width: 1152px; height: 864px; position: absolute; left: 0px; top: 0px; overflow: hidden; + canvas + */ rfb.scaleViewport = readQueryVariable('scale', false); }