Skip to content

Commit

Permalink
port Ace patch for wrapped line rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinushey committed Mar 14, 2020
1 parent d52236b commit 28a5e3f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Expand Up @@ -62436,6 +62436,10 @@ var Text = function(parentEl) {
this.$renderLine(
lineElement, row, row == foldStart ? foldLine : false
);

if (heightChanged)
lineElement.style.top = this.$lines.computeLineTop(row, config, this.session) + "px";

var height = (config.lineHeight * this.session.getRowLength(row)) + "px";
if (lineElement.style.height != height) {
heightChanged = true;
Expand Down Expand Up @@ -64552,6 +64556,7 @@ var VirtualRenderer = function(container, theme) {
this.scroller.className = this.scrollLeft <= 0 ? "ace_scroller" : "ace_scroller ace_scroll-left";
}
if (changes & this.CHANGE_FULL) {
this.$changedLines = null;
this.$textLayer.update(config);
if (this.$showGutter)
this.$gutterLayer.update(config);
Expand All @@ -64563,6 +64568,7 @@ var VirtualRenderer = function(container, theme) {
return;
}
if (changes & this.CHANGE_SCROLL) {
this.$changedLines = null;
if (changes & this.CHANGE_TEXT || changes & this.CHANGE_LINES)
this.$textLayer.update(config);
else
Expand All @@ -64583,6 +64589,7 @@ var VirtualRenderer = function(container, theme) {
}

if (changes & this.CHANGE_TEXT) {
this.$changedLines = null;
this.$textLayer.update(config);
if (this.$showGutter)
this.$gutterLayer.update(config);
Expand Down

Large diffs are not rendered by default.

0 comments on commit 28a5e3f

Please sign in to comment.