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

Commit

Permalink
Merge pull request #1264 from adobe/pflynn/issue-1240
Browse files Browse the repository at this point in the history
Fix issue #1240 (Inline editor background width)
  • Loading branch information
redmunds committed Jul 17, 2012
2 parents cf7e630 + 5bad160 commit a174091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/MultiRangeInlineEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ define(function (require, exports, module) {
// growing the overall width.
// This is a bit of a hack since it relies on knowing some detail about the innards of CodeMirror.
var lineSpace = this.hostEditor._getLineSpaceElement(),
minWidth = $(lineSpace).offset().left - this.$htmlContent.offset().left + $(lineSpace).width();
minWidth = $(lineSpace).offset().left - this.$htmlContent.offset().left + lineSpace.scrollWidth;
this.$htmlContent.css("min-width", minWidth + "px");
};

Expand Down

0 comments on commit a174091

Please sign in to comment.