Skip to content

Commit bdc2a69

Browse files
committed
fix(diff): SVG height rendering
1 parent d145585 commit bdc2a69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function AceDiff(options) {
106106
editorHeight: null,
107107
};
108108

109-
addEventHandlers(this);
109+
110110

111111
// set up the editors
112112
this.editors.left.ace.getSession().setMode(getMode(this, C.EDITOR_LEFT));
@@ -116,9 +116,6 @@ function AceDiff(options) {
116116
this.editors.left.ace.setTheme(getTheme(this, C.EDITOR_LEFT));
117117
this.editors.right.ace.setTheme(getTheme(this, C.EDITOR_RIGHT));
118118

119-
createCopyContainers(this);
120-
createGutter(this);
121-
122119
this.editors.left.ace.setValue(normalizeContent(this.options.left.content), -1);
123120
this.editors.right.ace.setValue(normalizeContent(this.options.right.content), -1);
124121

@@ -131,6 +128,9 @@ function AceDiff(options) {
131128
// assumption: both editors have same line heights
132129
this.lineHeight = this.editors.left.ace.renderer.lineHeight;
133130

131+
addEventHandlers(this);
132+
createCopyContainers(this);
133+
createGutter(this);
134134
this.diff();
135135
}, 1);
136136
}

0 commit comments

Comments
 (0)