Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Commit

Permalink
* Bugfix: Editor resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
cadorn committed May 30, 2011
1 parent cc00b95 commit 91a7d45
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions packages/extjs-ace/lib/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,16 @@ module.declare(["pilot/dom", "text!./component.css"], function(require, exports,
self.firstRender();
});
});

if (typeof this.on === "function")
{
this.on("resize", function()
{
if(self.editor) {
self.editor.resize();
}
});
}
},

firstRender: function()
Expand Down Expand Up @@ -120,13 +130,6 @@ module.declare(["pilot/dom", "text!./component.css"], function(require, exports,
this.firstRender();
},

onResize: function( aw, ah )
{
if(this.editor) {
this.editor.resize();
}
},

getValue: function()
{
return this.editor.getDocument().getValue();
Expand Down

0 comments on commit 91a7d45

Please sign in to comment.