Skip to content

Commit

Permalink
Fixed jumpy behavior in Windows 8.1 mobile. Fixes jackmoore#239.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmoore committed Jun 29, 2015
1 parent 176de8c commit 8ec02cb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## Changelog

##### v.3.0.7 - 2015-06-29
* Fixed jumpy behavior in Windows 8.1 mobile. Fixes #239.

##### v.3.0.6 - 2015-05-19
* Renamed 'dest' folder to 'dist' to follow common conventions.

Expand Down
4 changes: 2 additions & 2 deletions dist/autosize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
Autosize 3.0.5
Autosize 3.0.7
license: MIT
http://www.jacklmoore.com/autosize
*/
Expand Down Expand Up @@ -74,7 +74,7 @@

function update() {
var startHeight = ta.style.height;
var htmlTop = document.documentElement.scrollTop;
var htmlTop = window.pageYOffset;
var bodyTop = document.body.scrollTop;
var originalHeight = ta.style.height;

Expand Down
4 changes: 2 additions & 2 deletions dist/autosize.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "autosize",
"description": "Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.",
"version": "3.0.6",
"version": "3.0.7",
"keywords": [
"textarea",
"form",
Expand Down
2 changes: 1 addition & 1 deletion src/autosize.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function assign(ta, {setOverflowX = true, setOverflowY = true} = {}) {

function update() {
const startHeight = ta.style.height;
const htmlTop = window.pageYOffset || document.documentElement.scrollTop;
const htmlTop = window.pageYOffset;
const bodyTop = document.body.scrollTop;
const originalHeight = ta.style.height;

Expand Down

0 comments on commit 8ec02cb

Please sign in to comment.