mirror of
https://github.com/novnc/noVNC.git
synced 2026-06-05 11:59:39 +00:00
Some CSS style and DOM id/class cleanup.
This commit is contained in:
@@ -66,17 +66,20 @@ html {
|
||||
}
|
||||
|
||||
#noVNC_mobile_buttons {
|
||||
position:fixed;
|
||||
padding-left:10px;
|
||||
padding-top:9px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
#noVNC_buttons_right {
|
||||
.noVNC-buttons-left {
|
||||
position:fixed;
|
||||
padding-left:10px;
|
||||
padding-top:9px;
|
||||
}
|
||||
|
||||
.noVNC-buttons-right {
|
||||
float:right;
|
||||
right: 0px;
|
||||
padding-right:10px;
|
||||
padding-top:9px;
|
||||
right:0;
|
||||
}
|
||||
|
||||
#noVNC_status_bar {
|
||||
@@ -90,7 +93,7 @@ html {
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.VNC_status_button, #clipboardbutton, #connectbutton {
|
||||
.noVNC_status_button, #clipboardbutton, #connectbutton {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@@ -112,12 +115,6 @@ html {
|
||||
float:right;
|
||||
}
|
||||
|
||||
.VNC_buttons_right {
|
||||
text-align: right;
|
||||
}
|
||||
.VNC_buttons_left {
|
||||
text-align: left;
|
||||
}
|
||||
.noVNC_status_normal {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
@@ -304,10 +304,10 @@ that.viewportChange = function(deltaX, deltaY, width, height) {
|
||||
}
|
||||
|
||||
if ((deltaX === 0) && (deltaY === 0)) {
|
||||
//message("skipping");
|
||||
//Util.Debug("skipping viewport change");
|
||||
return;
|
||||
}
|
||||
message("deltaX: " + deltaX + ", deltaY: " + deltaY);
|
||||
Util.Debug("viewportChange deltaX: " + deltaX + ", deltaY: " + deltaY);
|
||||
|
||||
v.x += deltaX;
|
||||
vx2 += deltaX;
|
||||
@@ -363,7 +363,7 @@ that.viewportChange = function(deltaX, deltaY, width, height) {
|
||||
c_ctx.fillRect(0, y1, v.w, h);
|
||||
}
|
||||
c_ctx.fillStyle = saveStyle;
|
||||
}
|
||||
};
|
||||
|
||||
that.getCleanDirtyReset = function() {
|
||||
var v = viewport, c = cleanRect, cleanBox, dirtyBoxes = [],
|
||||
|
||||
@@ -302,7 +302,7 @@ updateState: function(rfb, state, oldstate, msg) {
|
||||
c.value = "Disconnect";
|
||||
c.onclick = UI.disconnect;
|
||||
c.disabled = false;
|
||||
cad.style.display = "block";
|
||||
cad.style.display = "";
|
||||
UI.settingsDisabled(true, rfb);
|
||||
klass = "noVNC_status_normal";
|
||||
break;
|
||||
@@ -497,7 +497,6 @@ addOption: function(selectbox,text,value )
|
||||
setBarPosition: function() {
|
||||
$D('noVNC-control-bar').style.top = (window.pageYOffset) + 'px';
|
||||
$D('noVNC_mobile_buttons').style.left = (window.pageXOffset) + 'px';
|
||||
$D('noVNC_buttons_right').style.right = 0 + 'px';
|
||||
|
||||
var vncwidth = $D('noVNC_screen').style.offsetWidth;
|
||||
$D('noVNC-control-bar').style.width = vncwidth + 'px';
|
||||
|
||||
Reference in New Issue
Block a user