TelerikTextArea problem

1 Answer 564 Views
TextArea
Konrad
Top achievements
Rank 1
Konrad asked on 24 Sep 2021, 02:34 PM | edited on 24 Sep 2021, 02:35 PM

Hi, what is the reason when TelerikTextArea with Autosize=true gets height 0px? I have component containing TelerikTextArea with autosize=true. Using this component directly in Page, TelerikTextArea appears OK (height in style gets correct px value) but using within another component it gets 0px. TelerikTextArea is disabled in this case but when enabled, the same issue (however, after any change/keypress, height gets correct).

 

Best regards

Konrad

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 28 Sep 2021, 06:42 PM

Hello Konrad,

The most likely reason is some CSS cascade that goes through the parent component in the app. By default, the textarea has a min-height CSS rule that should prevent that from happening, so something is probably overriding it. I am attaching here a screenshot that illustrates this, and a small sample that works fine on my end in a blank project, so you can compare against them to find the difference causing the issue. If you can reproduce it with just those two files in a blank solution, please attach it here so we can have a look.

Regards,
Marin Bratanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
TextArea
Asked by
Konrad
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or