GithubHelp home page GithubHelp logo

flivni / ionic2-autosize Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 2.0 16 KB

Angular 2 directive that automatically adjusts textarea height to fit content.

License: MIT License

TypeScript 81.51% JavaScript 18.49%

ionic2-autosize's People

Contributors

flivni avatar misha130 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ionic2-autosize's Issues

Error in prod build ionic

I run:

ionic build android --prod

and get error in ionic2-autosize:
2017-07-30 3 23 35
Can you help me and resolve this problem?

textArea.scrollHeight has not the correct value at first run

I think there should be a little timeout before
textArea.style.height = textArea.scrollHeight + "px";
to give it a little time to recalculate the scrollHeight.

I did this:

setTimeout(() => {
    textArea.style.height = textArea.scrollHeight + "px";
}, 100);

Error importing module

I am still getting familiar with ionic2 and Angular2. Does this seem like an issue with the package itself or can you please let me know if I am loading this improperly?

I have done the following

  1. npm install ionic2-autosize --save

  2. My declarations.d.ts file has declare module '*';

  3. In app.module.ts, I have import { Autosize } from 'ionic2-autosize';

and
@NgModule({ declarations: [ Autosize ],

I am receiving this message:
screen shot 2016-12-20 at 12 31 28 pm

Error in using ionc2-autosize

i am trying to consume this in my project to autoresize my ion-buttons based on the text coming from service dynamically.
when i installed and imported it in my app.modules.ts, its returning me the below error.
screen shot 2017-03-13 at 11 27 01 am

Error Message: Uncaught Error: Module build failed: Error: ENOENT: no such file or directory, open '/Users/e571224/Desktop/praveen/UnifiedEventApp/unified-event-app/node_modules/ionic2-autosize/index.js'

angular2-autosize is also giving the same issue. any idea on how to use it?

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.