Giter Site home page Giter Site logo

Comments (13)

jackmoore avatar jackmoore commented on July 16, 2024

Thanks for the report, but I wasn't able to reproduce this problem. Is your "how it should look" actually how it should look, or is that just how you want it to look (as in maybe it is rendering correctly according to your CSS)? What does it look like if you don't use autosize? If autosize is the problem, post a demo and I'll look into it.

from autosize.

gustavohenke avatar gustavohenke commented on July 16, 2024

Without using autosize, the textarea gets its original size (which is about 3 rows, the "how should look" is the min-height of the textarea) - have you tried with Bootstrap?

from autosize.

jackmoore avatar jackmoore commented on July 16, 2024

I didn't try with bootstrap, I just changed the box-sizing.

from autosize.

jackmoore avatar jackmoore commented on July 16, 2024

And changing the box-sizing did change the total height, but that was independent of using the plugin.

from autosize.

gustavohenke avatar gustavohenke commented on July 16, 2024

Sorry, I got out of the wi-fi zone and just updated the comment without refreshing...

This is the .input-block-level CSS:

    -moz-box-sizing: border-box;
    display: block;
    min-height: 30px;
    width: 100%;

from autosize.

jackmoore avatar jackmoore commented on July 16, 2024

Thanks

from autosize.

jackmoore avatar jackmoore commented on July 16, 2024

Ok, should be fixed now.

from autosize.

gustavohenke avatar gustavohenke commented on July 16, 2024

Oh, thanks! You're awesome!

from autosize.

crapthings avatar crapthings commented on July 16, 2024

@gustavohenke @jackmoore
i have the same issus, how do u get the height to 30px ?

from autosize.

nediam avatar nediam commented on July 16, 2024

Hello, it seams that the problem occurs again, but changing

boxOffset = $ta.outerHeight() - $ta.height();

to

boxOffset = $ta.outerHeight(false) - $ta.height();

does the trick.

from autosize.

jackmoore avatar jackmoore commented on July 16, 2024

outerHeight is false by default, so your change shouldn't affect anything:
http://api.jquery.com/outerHeight/

from autosize.

nediam avatar nediam commented on July 16, 2024

I know but only with "false" it works... (text area have input-block-level class)

from autosize.

jackmoore avatar jackmoore commented on July 16, 2024

Do you happen to be using jQuery 1.8.0? http://bugs.jquery.com/ticket/12293

from autosize.

Related Issues (20)

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.