Remove duplicate applyScreenPlan

Apdated helper text
This commit is contained in:
Chris Hunt 2023-10-12 14:25:39 +01:00
parent c7c515796a
commit 61454203f5
No known key found for this signature in database
3 changed files with 3 additions and 4 deletions

View File

@ -1271,7 +1271,7 @@ a:visited {
} }
#noVNC_displays .canvas-text { #noVNC_displays .canvas-text {
font-size: 12px; font-size: 12px;
padding: 0 10px; padding: 0 35px 0 10px;
opacity: 0.6; opacity: 0.6;
line-height: 1.4; line-height: 1.4;
margin-bottom: 15px; margin-bottom: 15px;

View File

@ -2785,13 +2785,12 @@ const UI = {
// Get the current screen plan // Get the current screen plan
// When a new display is added, it is defaulted to be placed to the far right relative to existing displays and to the top // When a new display is added, it is defaulted to be placed to the far right relative to existing displays and to the top
let screenPlan = UI.rfb.getScreenPlan(); let screenPlan = UI.rfb.getScreenPlan();
console.log(e)
// Now make adjustments to the screen plan, this is just an example // Now make adjustments to the screen plan, this is just an example
// screenPlan.screens[1].y = 0; // screenPlan.screens[1].y = 0;
// Finally apply the screen plan // Finally apply the screen plan
UI.rfb.applyScreenPlan(screenPlan); // UI.rfb.applyScreenPlan(screenPlan); // applyScreenPlan is triggered in UI.updateMonitors
UI.updateMonitors(screenPlan) UI.updateMonitors(screenPlan)
}, },

View File

@ -544,7 +544,7 @@
<div id="noVNC_displays"> <div id="noVNC_displays">
<div class="canvas"> <div class="canvas">
<div class="canvas-title">Arrange Displays</div> <div class="canvas-title">Arrange Displays</div>
<div class="canvas-text">Drag and drop to arrange displays</div> <div class="canvas-text">Drag and drop to arrange displays, new monitors are added to the right hand side of the previous monitor.</div>
<div id="noVNC_refreshMonitors"><svg id="noVNC_refreshMonitors_icon" xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path class="fa-primary" d="M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5z"/><path class="fa-secondary" d="M80 396.9V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V320c0-17.7 14.3-32 32-32H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H125.6l17.2 17.1c62.5 62.5 163.8 62.5 226.3 0c17.5-17.5 30.1-38 37.8-59.8c5.9-16.7 24.2-25.4 40.8-19.5s25.4 24.2 19.5 40.8c-10.8 30.6-28.4 59.3-52.9 83.8c-87.5 87.5-229.3 87.5-316.7 0L80 396.9z"/></svg></div> <div id="noVNC_refreshMonitors"><svg id="noVNC_refreshMonitors_icon" xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path class="fa-primary" d="M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H336c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v51.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5z"/><path class="fa-secondary" d="M80 396.9V448c0 17.7-14.3 32-32 32s-32-14.3-32-32V320c0-17.7 14.3-32 32-32H176c17.7 0 32 14.3 32 32s-14.3 32-32 32H125.6l17.2 17.1c62.5 62.5 163.8 62.5 226.3 0c17.5-17.5 30.1-38 37.8-59.8c5.9-16.7 24.2-25.4 40.8-19.5s25.4 24.2 19.5 40.8c-10.8 30.6-28.4 59.3-52.9 83.8c-87.5 87.5-229.3 87.5-316.7 0L80 396.9z"/></svg></div>
<canvas id="noVNC_multiMonitorWidget" class="" width="560" height="230"></canvas> <canvas id="noVNC_multiMonitorWidget" class="" width="560" height="230"></canvas>
<div class="arrange-buttons"> <div class="arrange-buttons">