mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-07 05:31:22 +00:00
Convert PanOverlay.
This commit is contained in:
@@ -40,8 +40,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="pan-overlay"></div>
|
||||
|
||||
<!-- On-screen keyboard -->
|
||||
<div id="keyboardContainer"></div>
|
||||
|
||||
|
@@ -59,7 +59,6 @@ GuacUI.Client = {
|
||||
"keyboard" : document.getElementById("keyboardContainer")
|
||||
},
|
||||
|
||||
"pan_overlay" : document.getElementById("pan-overlay"),
|
||||
"state" : document.getElementById("statusText"),
|
||||
"client" : null,
|
||||
"sessionState" : new GuacamoleSessionState(),
|
||||
@@ -254,14 +253,19 @@ GuacUI.StateManager.registerComponent(
|
||||
* @constructor
|
||||
* @augments GuacUI.Component
|
||||
*/
|
||||
GuacUI.Client.PanOverlay = function(pan_overlay) {
|
||||
GuacUI.Client.PanOverlay = function() {
|
||||
|
||||
/**
|
||||
* Overlay which will provide the means of scrolling the screen.
|
||||
*/
|
||||
var pan_overlay = GuacUI.createElement("div", "pan-overlay");
|
||||
|
||||
this.show = function() {
|
||||
pan_overlay.style.display = "block";
|
||||
document.body.appendChild(pan_overlay);
|
||||
};
|
||||
|
||||
this.hide = function() {
|
||||
pan_overlay.style.display = "none";
|
||||
document.body.removeChild(pan_overlay);
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -281,9 +285,7 @@ GuacUI.Client.PanOverlay.prototype = new GuacUI.Component();
|
||||
*/
|
||||
|
||||
GuacUI.StateManager.registerComponent(
|
||||
new GuacUI.Client.PanOverlay(
|
||||
document.getElementById("pan-overlay")
|
||||
),
|
||||
new GuacUI.Client.PanOverlay(),
|
||||
GuacUI.Client.states.PAN,
|
||||
GuacUI.Client.states.PAN_TYPING
|
||||
);
|
||||
|
@@ -191,13 +191,12 @@ div.magnifier {
|
||||
|
||||
}
|
||||
|
||||
div#pan-overlay {
|
||||
display: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
.pan-overlay {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Viewport Clone */
|
||||
|
Reference in New Issue
Block a user