ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Is ion-textarea auto resize support in ionic 2??

Open lifeisfunny opened this issue 10 years ago • 8 comments

Run ionic info from terminal/cmd prompt: (paste output below)

Cordova CLI: 6.3.0 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 2.0.0-beta.10 Ionic CLI Version: 2.0.0-beta.35 Ionic App Lib Version: 2.0.0-beta.19 ios-deploy version: 1.8.6 ios-sim version: 5.0.8 OS: Mac OS X El Capitan Node Version: v5.9.1 Xcode version: Xcode 7.3.1 Build version 7D1014 \

Like Title , Is auto resize support in ionic2 for ion-textarea? If not , Could any one point me a way to implementing this ? Many thanks

lifeisfunny avatar Aug 05 '16 20:08 lifeisfunny

Hello! Thanks for opening an issue with us! Resizing is supported for ion-textarea in Ionic 2 and can be turned on by using the following css:

textarea {
   resize: both;
}

You can read more about the resize css property here. Thanks for using Ionic!

jgw96 avatar Aug 05 '16 21:08 jgw96

thanks yo Great job on the ionic 2 ! i cant wait for its to launch ! Also look into the enterprise account now !

lifeisfunny avatar Aug 07 '16 05:08 lifeisfunny

I don't think this question was understood correctly, but it comes up as a top result in Google.

I wrote a simple directive for autoresizing ion-textarea as you input text. Here it is: https://gist.github.com/maxt3r/2485356e91a1969bdb6cf54902e61165

maxt3r avatar Nov 28 '16 17:11 maxt3r

@maxt3r I have used your solutions and its working great on web. But when using on a device I have a problem: When the text fills up the screen (with the keyboard open) each keystroke causing the page to scroll up and down, have you seen this kind of issue?

royipressburger avatar Dec 16 '16 16:12 royipressburger

@jgw96: I think the question was originally intended to be about native support for automatic resize, not the regular old manual resize.

KiaraGrouwstra avatar Jan 04 '17 06:01 KiaraGrouwstra

@royipressburger sorry the delay. I haven't seen these issues, but I have yet to test it properly on Android. Also, angular2-elastic works perfectly well, so I might just use that.

maxt3r avatar Jan 19 '17 11:01 maxt3r

Elastic text area is working perfectly fine on device too.Tested on Ionic 3.8.0

https://competenepal.com/elastic-text-area-component-in-ionic-framework/

Sampath-Lokuge avatar Nov 12 '17 02:11 Sampath-Lokuge

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Sep 01 '18 18:09 ionitron-bot[bot]