Skip to content
Permalink
Browse files

More specific detection of when to change overflow. Merges #361

  • Loading branch information...
jackmoore committed May 1, 2018
1 parent 53a2e03 commit 6ae70cd3d28888eb858eef1167e6ed75d25dff7f
Showing with 10 additions and 7 deletions.
  1. +5 −2 changelog.md
  2. +2 −2 dist/autosize.js
  3. +2 −2 dist/autosize.min.js
  4. +1 −1 package.json
@@ -1,10 +1,13 @@
## Changelog

##### v.4.0.2 - 2018-04-30
* More specific detection of when to change overflow. Merges #361.

##### v.4.0.1 - 2018-03-23
* Minor refactor & updated build depedencies
* Minor refactor & updated build dependencies

##### v.4.0.0 - 2017-07-12
* Changed how Autosize determines the inital height. Fixes #336.
* Changed how Autosize determines the initial height. Fixes #336.

##### v.3.0.21 - 2017-05-19
* Fixed bug with overflow detection which degraded performance of textareas that exceed their max-width. Fixes #333.
@@ -1,5 +1,5 @@
/*!
autosize 4.0.1
autosize 4.0.2
license: MIT
http://www.jacklmoore.com/autosize
*/
@@ -157,7 +157,7 @@

// The actual height not matching the style height (set via the resize method) indicates that
// the max-height has been exceeded, in which case the overflow should be allowed.
if (actualHeight !== styleHeight) {
if (actualHeight < styleHeight) {
if (computed.overflowY === 'hidden') {
changeOverflow('scroll');
resize();

Some generated files are not rendered by default. Learn more.

@@ -1,7 +1,7 @@
{
"name": "autosize",
"description": "Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.",
"version": "4.0.1",
"version": "4.0.2",
"keywords": [
"textarea",
"form",

0 comments on commit 6ae70cd

Please sign in to comment.
You can’t perform that action at this time.