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); }