Minor display fixes.

This commit is contained in:
George Michael Brower 2011-02-14 16:43:42 -05:00
parent fd300fb9ea
commit 9d33e16ccd
2 changed files with 4 additions and 5 deletions

1
gui.js
View File

@ -384,7 +384,6 @@ var GUI = function() {
for (var i in controllers) { for (var i in controllers) {
controllerHeight += controllers[i].domElement.offsetHeight; controllerHeight += controllers[i].domElement.offsetHeight;
} }
return;
if (controllerHeight - 1 > openHeight) { if (controllerHeight - 1 > openHeight) {
controllerContainer.style.overflowY = "auto"; controllerContainer.style.overflowY = "auto";
} else { } else {

View File

@ -104,9 +104,9 @@ GUI.Scrubber = function(controller, timer) {
if (i == 0) continue; if (i == 0) continue;
var x = Math.round(GUI.map(i, _this.timer.windowMin, _this.timer.windowMin+_this.timer.windowWidth, 0, width))+0.5; var x = Math.round(GUI.map(i, _this.timer.windowMin, _this.timer.windowMin+_this.timer.windowWidth, 0, width))+0.5;
if (i < 0) { if (i < 0) {
_this.g.strokeStyle = '#111111'; _this.g.strokeStyle = '#111';
} else { } else {
_this.g.strokeStyle = '#282828'; _this.g.strokeStyle = '#363636';
} }
_this.g.beginPath(); _this.g.beginPath();
_this.g.moveTo(x, 0); _this.g.moveTo(x, 0);
@ -266,9 +266,9 @@ GUI.Scrubber = function(controller, timer) {
} }
} }
if (_this.timer.hoverPoint == null) { if (_this.timer.hoverPoint == null) {
document.body.style.cursor = 'pointer';
} else {
document.body.style.cursor = 'auto'; document.body.style.cursor = 'auto';
} else {
document.body.style.cursor = 'pointer';
} }
_this.render(); _this.render();
}); });