diff options
-rw-r--r-- | web/share/css/kvm/stream.css | 1 | ||||
-rw-r--r-- | web/share/js/wm.js | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/web/share/css/kvm/stream.css b/web/share/css/kvm/stream.css index 91a019d0..519d1efb 100644 --- a/web/share/css/kvm/stream.css +++ b/web/share/css/kvm/stream.css @@ -106,6 +106,7 @@ div#stream-mouse-buttons { @media only screen and (hover: none) and (pointer: coarse) { div#stream-window { padding-top: 3px !important; + padding-bottom: 80px !important; border-top: 0 !important; border-left: 0 !important; border-right: 0 !important; diff --git a/web/share/js/wm.js b/web/share/js/wm.js index 791ab36b..fd26c730 100644 --- a/web/share/js/wm.js +++ b/web/share/js/wm.js @@ -362,6 +362,12 @@ function __WindowManager() { var __organizeWindowsOnBrowserResize = function() { for (let el_window of $$("window")) { if (el_window.style.visibility === "visible") { + if (tools.browser.is_ios && el_window.classList.contains("window-resizable")) { + // FIXME: При смене ориентации на мобильном браузере надо сбрасывать + // настройки окна стрима, поэтому тут стоит вот этот костыль + el_window.style.width = ""; + el_window.style.height = ""; + } __organizeWindow(el_window); } } |