Fix overflow

alternate-visualiser
William Toohey 10 years ago
parent 2de8aefc55
commit cc2c0a13c2
  1. 2
      css/hues-r.css
  2. 22
      css/hues-x.css
  3. BIN
      img/lighton.png
  4. 5
      js/HuesUI.js

@ -8,6 +8,8 @@
position: absolute; position: absolute;
bottom: 0px; bottom: 0px;
white-space: nowrap; white-space: nowrap;
overflow: hidden;
width: 100%;
font-size: 10px; font-size: 10px;
} }

@ -93,24 +93,36 @@
.hues-x-wiresleft, .hues-x-wiresright { .hues-x-wiresleft, .hues-x-wiresright {
height: 100%; height: 100%;
top: 0px; top: 0px;
overflow: hidden;
} }
.hues-x-wiresleft { .hues-x-wiresleft {
width: 76px; width: 200px;
left: 0px; left: 0px;
background-image: url("../img/wiresleft.png"); background-image: url("../img/wiresleft.png");
} }
.hues-x-wiresright { .hues-x-wiresright {
width: 59px; width: 200px;
right: 0px; right: 0px;
background-image: url("../img/wiresright.png"); background-image: url("../img/wiresright.png");
background-position: 141px 0px;
} }
.hues-x-wiresbottom { .hues-x-wiresbottomhelper {
position: absolute;
bottom: 0px; bottom: 0px;
height: 56px; width: 100%;
height: 200px;
overflow: hidden;
}
.hues-x-wiresbottom {
height: 200px;
width:2889px; width:2889px;
background-image: url("../img/wiresbottom.png"); background-image: url("../img/wiresbottom.png");
left:50%;margin-left:-1444.5px; background-position: 0px 144px;
left:50%;
margin-left: -1444.5px;
overflow: hidden;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

@ -774,6 +774,8 @@ function XmasUI() {
this.lights.push(light); this.lights.push(light);
} }
var bottomHelper = document.createElement("div");
bottomHelper.className = "hues-x-wiresbottomhelper";
var bottom = document.createElement("div"); var bottom = document.createElement("div");
bottom.className = "hues-x-wiresbottom"; bottom.className = "hues-x-wiresbottom";
for(var i = 0; i < xbottom.length; i++) { for(var i = 0; i < xbottom.length; i++) {
@ -787,7 +789,8 @@ function XmasUI() {
wires.appendChild(left); wires.appendChild(left);
wires.appendChild(right); wires.appendChild(right);
wires.appendChild(bottom); bottomHelper.appendChild(bottom);
wires.appendChild(bottomHelper);
this.root.appendChild(wires); this.root.appendChild(wires);
} }
XmasUI.prototype = Object.create(ModernUI.prototype); XmasUI.prototype = Object.create(ModernUI.prototype);

Loading…
Cancel
Save