fix text measure regression
This commit is contained in:
parent
3ec57748a9
commit
a9952b5609
1 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ ace.layer.Text = function(parentEl) {
|
||||||
style.position = "absolute";
|
style.position = "absolute";
|
||||||
style.overflow = "visible";
|
style.overflow = "visible";
|
||||||
|
|
||||||
for (prop in this.$fontStyles) {
|
for (var prop in this.$fontStyles) {
|
||||||
var value = ace.computedStyle(this.element, prop);
|
var value = ace.computedStyle(this.element, prop);
|
||||||
style[prop] = value;
|
style[prop] = value;
|
||||||
}
|
}
|
||||||
|
|
@ -124,7 +124,7 @@ ace.layer.Text = function(parentEl) {
|
||||||
|
|
||||||
var html = [];
|
var html = [];
|
||||||
for ( var i = config.firstRow; i <= config.lastRow; i++) {
|
for ( var i = config.firstRow; i <= config.lastRow; i++) {
|
||||||
html.push("<div class='line' style='height:" + this.lineHeight + "px;", "width:",
|
html.push("<div class='line' style='height:" + this.$characterSize.height + "px;", "width:",
|
||||||
config.width, "px'>");
|
config.width, "px'>");
|
||||||
this.renderLine(html, i), html.push("</div>");
|
this.renderLine(html, i), html.push("</div>");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue