Question
CPF
SG
Last activity: 16 Oct 2018 12:03 EDT
How to get vertical scroll bar for read only text area if it has more than 2 lines?
When I have read only text area, I want a vertical scroll bar if it has more than 2 lines instead of wrap text. How to achieve this?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
GB
The Text Area control will auto expand to fit the content when in read only mode and there are no standard options to change this. You could try creating a format in the skin and adding some CSS to get the behavior that you want.
For example, here I have set a max-height value, and overflow properties to achieve the result shown.
And at design and runtime:
-
Soumya Maity venu kampalapalli
CPF
SG
I tried as it is but it is not working in IE
Pegasystems Inc.
GB
Which version of IE are you using?
I tested the above in IE11 and it is working as shown above.
CPF
SG
IE 11
Infosys
IN
Hi,
But i need that text border also visible/
How to achieve that
Thanks and Regards,
Mahesh
Pegasystems Inc.
US
Hi Mahesh,
You can see the below link. It will help you out in adding text borders.
CGI
FR
Hi Marc,
I've implemented this and it's working fine. But even when the text description is small ,I'm able to see an scroll bar icon(disabled) for the column.
Could you please add some points how to enable that only after particular length. Thank you in advance
P.S : This is not happening for an Editable configuration of Text Field, with Scroll Bar option is checked.