Skip to content

Commit

Permalink
Better code for hiding the textarea in the new UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnall committed Oct 31, 2010
1 parent fd7691f commit bb0d53e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -9,7 +9,7 @@ end

# Production binary.
file 'bin/next_editor.min.js' => 'bin/next_editor.js' do
Kernel.system 'juicer merge bin/next_editor.js'
Kernel.system 'juicer merge --force bin/next_editor.js'
end

# Build everything by default.
Expand Down
5 changes: 5 additions & 0 deletions bin/next_editor.js
Expand Up @@ -569,6 +569,11 @@ NextEditor.UI.Fire.prototype.buildEditor = function () {
this.inputElement.style.position = 'absolute';
this.inputElement.style.width = 0;
this.inputElement.style.height = 0;
this.inputElement.style.margin = 0;
this.inputElement.style.padding = 0;
this.inputElement.style.border = 'none';
this.inputElement.style.left = 0;
this.inputElement.style.top = 0;

this.editorElement = document.createElement('div');
this.editorElement.style.width = this.editorElement.style.height = '100%';
Expand Down

0 comments on commit bb0d53e

Please sign in to comment.