Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Commit

Permalink
Refresh host editor after adding an inline widget so CodeMirror updat…
Browse files Browse the repository at this point in the history
…es its line heights properly
  • Loading branch information
Narciso Jaramillo committed Oct 11, 2012
1 parent add307e commit 05e8aa6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/editor/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ define(function (require, exports, module) {
});
this._inlineWidgets.push(inlineWidget);
inlineWidget.onAdded();
this._codeMirror.refresh();

// once this widget is added, notify all following inline widgets of a position change
this._fireWidgetOffsetTopChanged(pos.line);
Expand Down

0 comments on commit 05e8aa6

Please sign in to comment.