mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 21:51:23 +00:00
Show/hide touch menu through display rather than visiblity, fix sending of non-integer screen sizes for small screens.
This commit is contained in:
@@ -148,8 +148,8 @@
|
|||||||
// Scale width/height to be at least 600x600
|
// Scale width/height to be at least 600x600
|
||||||
if (optimal_width < 600 || optimal_height < 600) {
|
if (optimal_width < 600 || optimal_height < 600) {
|
||||||
var scale = Math.max(600 / optimal_width, 600 / optimal_height);
|
var scale = Math.max(600 / optimal_width, 600 / optimal_height);
|
||||||
optimal_width *= scale;
|
optimal_width = Math.floor(optimal_width * scale);
|
||||||
optimal_height *= scale;
|
optimal_height = Math.floor(optimal_height * scale);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get entire query string, and pass to connect().
|
// Get entire query string, and pass to connect().
|
||||||
|
@@ -149,7 +149,7 @@ GuacamoleUI.supportedAudio = [];
|
|||||||
};
|
};
|
||||||
|
|
||||||
GuacamoleUI.hideTouchMenu = function() {
|
GuacamoleUI.hideTouchMenu = function() {
|
||||||
GuacamoleUI.touchMenu.style.visibility = "hidden";
|
GuacamoleUI.touchMenu.style.display = "none";
|
||||||
};
|
};
|
||||||
|
|
||||||
function positionCentered(element) {
|
function positionCentered(element) {
|
||||||
@@ -165,8 +165,8 @@ GuacamoleUI.supportedAudio = [];
|
|||||||
}
|
}
|
||||||
|
|
||||||
GuacamoleUI.showTouchMenu = function() {
|
GuacamoleUI.showTouchMenu = function() {
|
||||||
|
GuacamoleUI.touchMenu.style.display= "";
|
||||||
positionCentered(GuacamoleUI.touchMenu);
|
positionCentered(GuacamoleUI.touchMenu);
|
||||||
GuacamoleUI.touchMenu.style.visibility = "visible";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GuacamoleUI.hideTouchClipboard = function() {
|
GuacamoleUI.hideTouchClipboard = function() {
|
||||||
|
@@ -262,7 +262,7 @@ textarea#eventTarget {
|
|||||||
div#touchMenu {
|
div#touchMenu {
|
||||||
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
visibility: hidden;
|
display: none;
|
||||||
z-index: 4;
|
z-index: 4;
|
||||||
|
|
||||||
white-space: pre;
|
white-space: pre;
|
||||||
|
Reference in New Issue
Block a user