Giter Club home page Giter Club logo

autosize's Introduction

Autosize

Small jQuery plugin to allow dynamic resizing of textarea height, so that it grows as based on visitor input. To use, just call the .autosize() method on any textarea element. Example $('textarea').autosize();. See the project page for documentation and a demonstration. Released under the MIT license.

Changelog

Version 1.11 - August 8, 2012

  • Added workaround to get Chrome to reflow default text better.

Version 1.10 - July 30, 2012

  • Added 'lineHeight' to the list of styles considered for size detection.

Version 1.9 - June 19, 2012

  • Added 'textIndent' to the list of styles considered for size detection.
  • Added vender prefixes to box-sizing detection

Version 1.8 - June 7, 2012

  • Added conditional so that autosize cannot be applied twice to the same element

  • When autosize is applied to an element, it will have a data property that links it to the mirrored textarea element. This will make it easier to keep track of and remove unneeded mirror elements. Example:

    $('textarea.example').data('mirror').remove(); // delete the mirror

    $('textarea.example').remove(); // delete the original

Version 1.7 - May 3, 2012

  • Now supports box-sizing:border-box

Version 1.6 - February 11, 2012

  • added binding to allow autosize to be triggered manually. Example: $('#myTextArea').trigger('autosize');

Version 1.5 - December 7, 2011

  • fixed a regression in detecting FireFox support

Version 1.4 - November 22, 2011

  • added branching to exclude old browsers (FF3- & Safari4-)

Version 1.3 - November 13, 2011

  • fixed a regression in 1.1 relating to Opera.

Version 1.2 - November 10, 2011

  • fixed a regression in 1.1 that broke autosize for IE9.

Version 1.1 - November 10, 2011

  • autosize now follows the max-height of textareas. OverflowY will be set to scroll once the content height exceeds max-height.

Version 1.0 - November 7, 2011

  • first release

autosize's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.