Skip to content

Commit

Permalink
fixes #114 wild jumping (#151)
Browse files Browse the repository at this point in the history
* fixes #114 wild jumping

* fix
  • Loading branch information
jywarren authored Aug 7, 2018
1 parent e4fcc6b commit 78e34c9
Show file tree
Hide file tree
Showing 4 changed files with 993 additions and 1,656 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
2,637 changes: 988 additions & 1,649 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.3.0",
"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
9 changes: 3 additions & 6 deletions src/modules/PublicLab.RichTextModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,11 @@ 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 });

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

_module.resize();
Expand Down

0 comments on commit 78e34c9

Please sign in to comment.