* Changed css class setting

* Added max 0 for height
This commit is contained in:
unknown 2010-04-21 14:37:45 +02:00
commit 99ad78d13c
2 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ ace.ScrollBar.prototype.getWidth = function() {
};
ace.ScrollBar.prototype.setHeight = function(height) {
this.element.style.height = (height - this.width) + "px";
this.element.style.height = Math.max(0, height - this.width) + "px";
};
ace.ScrollBar.prototype.setInnerHeight = function(height) {

View file

@ -2,7 +2,7 @@ ace.provide("ace.VirtualRenderer");
ace.VirtualRenderer = function(container) {
this.container = container;
this.container.className += "editor";
this.container.className += " editor";
this.scroller = document.createElement("div");
this.scroller.className = "scroller";
@ -233,11 +233,11 @@ ace.VirtualRenderer.prototype.screenToTextCoordinates = function(pageX, pageY) {
};
ace.VirtualRenderer.prototype.visualizeFocus = function() {
this.container.className = "editor focus";
//this.container.className = "editor focus";
};
ace.VirtualRenderer.prototype.visualizeBlur = function() {
this.container.className = "editor";
//this.container.className = "editor";
};
ace.VirtualRenderer.prototype.showComposition = function(position) {