Merge pull request #3 from kasmtech/bug_fixes

Fix auto size on low quality setting
This commit is contained in:
Kasm 2021-04-20 09:31:46 -04:00 committed by GitHub
commit 10a7fcb91d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -734,7 +734,7 @@ export default class RFB extends EventTargetMixin {
if (!this._scaleViewport) { if (!this._scaleViewport) {
this._display.scale = 1.0; this._display.scale = 1.0;
} else { } else {
const size = this._screenSize(); const size = this._screenSize(false);
this._display.autoscale(size.w, size.h); this._display.autoscale(size.w, size.h);
} }
this._fixScrollbars(); this._fixScrollbars();

View File

@ -48,7 +48,7 @@
<link rel="apple-touch-icon" sizes="152x152" type="image/png" href="app/images/icons/368_kasm_logo_only_152x152.png"> <link rel="apple-touch-icon" sizes="152x152" type="image/png" href="app/images/icons/368_kasm_logo_only_152x152.png">
<!-- Stylesheets --> <!-- Stylesheets -->
<link rel="stylesheet" href="app/styles/base.css"> <!--link rel="stylesheet" href="app/styles/base.css">
<script src="app/error-handler.js"></script> <script src="app/error-handler.js"></script>
@ -67,7 +67,7 @@
} }
</script> </script>
<script type="module" crossorigin="use-credentials" src="app/ui.js"></script> <script type="module" crossorigin="use-credentials" src="app/ui.js"></script-->
</head> </head>
<body> <body>

View File

@ -101,7 +101,7 @@ module.exports = {
new CleanWebpackPlugin(), new CleanWebpackPlugin(),
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
filename: '../index.html', filename: '../index.html',
template: 'load.html', template: 'vnc.html',
minify: { minify: {
html5: true, html5: true,
collapseWhitespace: true, collapseWhitespace: true,
@ -135,4 +135,4 @@ module.exports = {
filename: "[name].bundle.css" filename: "[name].bundle.css"
}), }),
], ],
}; };