primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Autoresize of TextArea does not resize correctly if relative width is defined

Open pvlptr opened this issue 10 years ago • 5 comments

Autoresize of TextArea (directive pInputTextarea) does not resize correctly if relative width (for example width: 100%) is defined.

Example from Ultima theme life preview (Only 5 rows entered, but TextArea was resized to 20 rows): textarearesize

pvlptr avatar Nov 28 '16 14:11 pvlptr

Any updates with this?

Hesesses avatar Apr 20 '17 09:04 Hesesses

This should be fixed in recent PrimeNG release, please try with it and if the issue persists drop a comment with along with a test case based on plunkr below and we'll review again.

http://plnkr.co/edit/MxSw4qOuwDfq7rLO7jrR?p=preview

cagataycivici avatar Jun 17 '17 19:06 cagataycivici

Unfortunately this issue is still seem to be present when you set any width other than the native [cols] width for the input textarea:

https://plnkr.co/edit/FMiGoSmiBGPIIe4QDjpo?p=preview

richteri avatar Nov 02 '17 17:11 richteri

@cagataycivici please re-open it. i have this issue with current primeng, same as @richteri - see his plnkr, the textarea always 2x taller

FirstVertex avatar Jan 18 '18 20:01 FirstVertex

Hello, this issue still semms to persist in 8.1.1. Any plans to fix?

mdelorimier avatar Jan 24 '20 18:01 mdelorimier