Permalink
Browse files

Better readable code for DFL 2568.

  • Loading branch information...
1 parent 6eb1f57 commit c9add09526f8bd05d9aabb2ee0f9c4547d1df8c0 @chriskr chriskr committed Oct 10, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/repl/repl_view.js
View
@@ -122,7 +122,7 @@ cls.ReplView = function(id, name, container_class, html, default_handler) {
this._update_input_height_bound = function()
{
- this._textarea.rows = (this._textarea.scrollHeight / this._input_row_height >> 0) || 1;
+ this._textarea.rows = Math.max(1, Math.floor(this._textarea.scrollHeight / this._input_row_height));
}.bind(this);
this._save_scroll_bound = function()

0 comments on commit c9add09

Please sign in to comment.