the issue seemed to be linked to the use of table instead of div

This commit is contained in:
piair 2024-02-28 14:13:16 +01:00
parent 3d096ec34c
commit 83eea03c73
1 changed files with 7 additions and 14 deletions

View File

@ -10,23 +10,16 @@
<script src="{{ url_for('static', filename='node_modules/xterm/lib/xterm.js') }}"></script>
<script src="{{ url_for('static', filename='node_modules/xterm-addon-fit/lib/xterm-addon-fit.js') }}"></script>
<table>
<tr>
<td width="20%" height="90%">
<div id="console"></div>
</td>
<td width="80%">
<iframe src="/novnc/vnc.html?resize=scale&path=novnc/websockify&autoconnect=true&view_only"
width="100%" height="100%" frameborder="0"></iframe>
</td>
</tr>
</table>
<div>
<div id="console" style="height: 100%; width: 20%; float:left;"></div>
<script>
<div style="width: 80%; float:left;">
<iframe src="/novnc/vnc.html?resize=scale&path=novnc/websockify&autoconnect=true&view_only"
width="100%" height="100%" frameborder="0"></iframe>
</div>
</div>
</script>
<script>
var term = new Terminal();
const fitAddon = new FitAddon.FitAddon();