summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/stream.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-05-04 00:27:18 +0300
committerDevaev Maxim <[email protected]>2019-05-04 00:27:18 +0300
commit5dd3327031343451221c9f6ecc71b921c5e4b5c3 (patch)
treec8cbced99e89e9918ee918f0dca57af192e2c0dc /web/share/js/kvm/stream.js
parenta7409e3a7af5a755591884be32896cad8f1bfddc (diff)
better windows management
Diffstat (limited to 'web/share/js/kvm/stream.js')
-rw-r--r--web/share/js/kvm/stream.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js
index 0a0de313..f6d19718 100644
--- a/web/share/js/kvm/stream.js
+++ b/web/share/js/kvm/stream.js
@@ -208,11 +208,11 @@ function Streamer() {
});
};
- var __resize = function(center=false) {
+ var __resize = function() {
let size = $("stream-size-slider").value;
$("stream-size-value").innerHTML = size + "%";
__size_factor = size / 100;
- __applySizeFactor(center);
+ __applySizeFactor();
};
var __adjustSizeFactor = function() {
@@ -223,7 +223,7 @@ function Streamer() {
for (let size = 100; size >= el_slider.min; size -= el_slider.step) {
tools.info("Stream: adjusting size:", size);
$("stream-size-slider").value = size;
- __resize(true);
+ __resize();
let rect = el_window.getBoundingClientRect();
if (
@@ -237,11 +237,11 @@ function Streamer() {
}
};
- var __applySizeFactor = function(center=false) {
+ var __applySizeFactor = function() {
let el_stream_image = $("stream-image");
el_stream_image.style.width = __resolution.width * __size_factor + "px";
el_stream_image.style.height = __resolution.height * __size_factor + "px";
- wm.showWindow($("stream-window"), false, center);
+ wm.showWindow($("stream-window"), false);
};
__init__();