2.1.0 • Published 5 years ago

autosizer v2.1.0

Weekly downloads
58
License
BSD-3-Clause
Repository
github
Last release
5 years ago

Autosizer

Apply to any textarea on the page and let it automatically resize to fit
any text typed or pasted inside.

Demo: http://kanecohen.github.io/autosizer/

Usage

Autosizer can be inserted into page as an ordinary script, or it could be
loaded as an AMD or CommonJS module.

Autosizer also support usage as a jQuery plugin, but jQuery is not required.

var Autosizer = require('autosizer');
var as = new Autosizer('.my-textarea');

Options

Besides an element, autosizer accepts an object with several possible options

follow: true When set to true, scrollbar will always try to stay in a constant
position related to where typing caret is located.

viewportMargin: null Limits maximum height before textarea hits bottom of the
viewport.

2.1.0

5 years ago

2.0.0

5 years ago

1.3.3

9 years ago

1.3.2

9 years ago

1.3.1

9 years ago

1.3.0

10 years ago

1.2.5

10 years ago

1.2.4

10 years ago

1.2.3

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.2.1

11 years ago

0.2.0

11 years ago