mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 06:01:22 +00:00
Pop up menu in center, but do not rely on position: fixed.
This commit is contained in:
@@ -142,7 +142,19 @@ var GuacamoleUI = {
|
||||
};
|
||||
|
||||
GuacamoleUI.showTouchMenu = function() {
|
||||
|
||||
GuacamoleUI.touchMenu.style.left =
|
||||
((GuacamoleUI.viewport.offsetWidth - GuacamoleUI.touchMenu.offsetWidth) / 2
|
||||
+ window.pageXOffset)
|
||||
+ "px";
|
||||
|
||||
GuacamoleUI.touchMenu.style.top =
|
||||
((GuacamoleUI.viewport.offsetHeight - GuacamoleUI.touchMenu.offsetHeight) / 2
|
||||
+ window.pageYOffset)
|
||||
+ "px";
|
||||
|
||||
GuacamoleUI.touchMenu.style.visibility = "visible";
|
||||
|
||||
};
|
||||
|
||||
GuacamoleUI.shadeMenu = function() {
|
||||
|
Reference in New Issue
Block a user