mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Pop up menu in center, but do not rely on position: fixed.
This commit is contained in:
@@ -85,16 +85,10 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Touch-specific menu -->
|
<!-- Touch-specific menu -->
|
||||||
<div class="dialogOuter">
|
<div id="touchMenu">
|
||||||
<div class="dialogMiddle">
|
<img id="touchShowClipboard" src="images/menu-icons/tango/edit-paste.png"/>
|
||||||
|
<img id="touchShowKeyboard" src="images/menu-icons/tango/input-keyboard.png"/>
|
||||||
<div id="touchMenu">
|
<img id="touchLogout" src="images/menu-icons/tango/system-log-out.png"/>
|
||||||
<img id="touchShowClipboard" src="images/menu-icons/tango/edit-paste.png"/>
|
|
||||||
<img id="touchShowKeyboard" src="images/menu-icons/tango/input-keyboard.png"/>
|
|
||||||
<img id="touchLogout" src="images/menu-icons/tango/system-log-out.png"/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- guacamole-common-js scripts -->
|
<!-- guacamole-common-js scripts -->
|
||||||
|
@@ -142,7 +142,19 @@ var GuacamoleUI = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
GuacamoleUI.showTouchMenu = function() {
|
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.touchMenu.style.visibility = "visible";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
GuacamoleUI.shadeMenu = function() {
|
GuacamoleUI.shadeMenu = function() {
|
||||||
|
@@ -260,9 +260,14 @@ textarea#eventTarget {
|
|||||||
/* Touch-specific menu */
|
/* Touch-specific menu */
|
||||||
|
|
||||||
div#touchMenu {
|
div#touchMenu {
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
visibility: hidden;
|
||||||
|
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
background: black;
|
background: black;
|
||||||
border: 1px solid silver;
|
border: 1px solid silver;
|
||||||
padding: 1em;
|
padding: 1em;
|
||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
|
|
||||||
}
|
}
|
Reference in New Issue
Block a user