Skip to content

Commit

Permalink
Improve word wrap code
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRatcliffe committed Feb 5, 2011
1 parent 8f47092 commit 1544e60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chrome/content/aceEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Firebug.Ace =
{
return Firebug.largeCommandLineEditor;
};

Firebug.ConsolePanel.prototype.detach = function(oldChrome, newChrome) {
var oldFrame = oldChrome.$("fbAceBrowser");
var newFrame = newChrome.$("fbAceBrowser");
Expand Down
2 changes: 1 addition & 1 deletion chrome/content/fbace/startup.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ exports.launch = function(env) {
editor.resize();
if(session.getUseWrapMode()) {
var characterWidth = editor.renderer.characterWidth;
var contentWidth = editor.container.ownerDocument.getElementsByClassName("ace_scroller")[0].clientWidth;
var contentWidth = editor.renderer.scroller.clientWidth;

if(contentWidth > 0) {
session.setWrapLimit(parseInt(contentWidth / characterWidth, 10));
Expand Down

0 comments on commit 1544e60

Please sign in to comment.