Skip to content

Commit

Permalink
fixes publiclab#114 wild jumping
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed Aug 7, 2018
1 parent f5f5492 commit a85c723
Show file tree
Hide file tree
Showing 4 changed files with 4,020 additions and 3,450 deletions.
1 change: 1 addition & 0 deletions dist/PublicLab.Editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
.ple-textarea {
box-sizing: border-box;
min-height: 31px;
height: 800px;
}

.ple-history {
Expand Down
7,454 changes: 4,013 additions & 3,441 deletions dist/PublicLab.Editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "publiclab-editor",
"version": "1.2.3",
"version": "1.3.1",
"description": "PublicLab.Editor is a general purpose, JavaScript/Bootstrap UI framework for rich text posting, which provides an author-friendly, minimal, mobile/desktop (fluid) interface for creating blog-like content, designed for PublicLab.org",
"main": "dist/PublicLab.Editor.js",
"scripts": {
Expand Down
13 changes: 5 additions & 8 deletions src/modules/PublicLab.RichTextModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,12 @@ module.exports = PublicLab.RichTextModule = PublicLab.Module.extend({

}


var growTextarea = require('grow-textarea');

// caused wild jumpy behavior - https://github.com/publiclab/PublicLab.Editor/issues/114
//var growTextarea = require('grow-textarea');
// Make textarea match content height
_module.resize = function() {

growTextarea(_module.options.textarea, { extra: 10 });

}
// _module.resize = function() {
//growTextarea(_module.options.textarea, { extra: 10 });
//}

_module.resize();

Expand Down

0 comments on commit a85c723

Please sign in to comment.