Merge branch 'master' of github.com:ajaxorg/ace
This commit is contained in:
commit
4315fd36cf
2 changed files with 16 additions and 4 deletions
|
|
@ -113,11 +113,15 @@ var Text = function(parentEl) {
|
||||||
// Note: characterWidth can be a float!
|
// Note: characterWidth can be a float!
|
||||||
measureNode.innerHTML = lang.stringRepeat("Xy", n);
|
measureNode.innerHTML = lang.stringRepeat("Xy", n);
|
||||||
|
|
||||||
var container = this.element.parentNode;
|
if (document.body) {
|
||||||
while (!dom.hasCssClass(container, "ace_editor"))
|
document.body.appendChild(measureNode);
|
||||||
container = container.parentNode;
|
} else {
|
||||||
|
var container = this.element.parentNode;
|
||||||
|
while (!dom.hasCssClass(container, "ace_editor"))
|
||||||
|
container = container.parentNode;
|
||||||
|
container.appendChild(measureNode);
|
||||||
|
}
|
||||||
|
|
||||||
container.appendChild(measureNode);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var style = this.$measureNode.style;
|
var style = this.$measureNode.style;
|
||||||
|
|
|
||||||
|
|
@ -277,6 +277,10 @@ var VirtualRenderer = function(container, theme) {
|
||||||
this.getPrintMarginColumn = function() {
|
this.getPrintMarginColumn = function() {
|
||||||
return this.$printMarginColumn;
|
return this.$printMarginColumn;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.getShowGutter = function(){
|
||||||
|
return this.showGutter;
|
||||||
|
}
|
||||||
|
|
||||||
this.setShowGutter = function(show){
|
this.setShowGutter = function(show){
|
||||||
if(this.showGutter === show)
|
if(this.showGutter === show)
|
||||||
|
|
@ -365,6 +369,10 @@ var VirtualRenderer = function(container, theme) {
|
||||||
this.$updatePrintMargin();
|
this.$updatePrintMargin();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.getHScrollBarAlwaysVisible = function() {
|
||||||
|
return this.$horizScrollAlwaysVisible;
|
||||||
|
}
|
||||||
|
|
||||||
this.setHScrollBarAlwaysVisible = function(alwaysVisible) {
|
this.setHScrollBarAlwaysVisible = function(alwaysVisible) {
|
||||||
if (this.$horizScrollAlwaysVisible != alwaysVisible) {
|
if (this.$horizScrollAlwaysVisible != alwaysVisible) {
|
||||||
this.$horizScrollAlwaysVisible = alwaysVisible;
|
this.$horizScrollAlwaysVisible = alwaysVisible;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue