* Changed css class setting
* Added max 0 for height
This commit is contained in:
parent
dd68dba6a9
commit
99ad78d13c
2 changed files with 4 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue