Is it possible to word wrap a column eg.Comments so users can see the entire comments without having to fiddle around adjusting the column width?
Question
Question
Answer
If we are talking about a folder listing in the web client, then no, word wrap isn't available. I don't think it's really feasible, since then row height would vary and accurate scrolling would be really tricky. But maybe we can come up with another solution. How long are the comments that you are trying to read?
Replies
Hi Victor,
Forms uses the HTML "input" element for single-line fields, which cannot have multiple lines. This is a limitation of browsers/CSS/HTML. You would need to use a multi-line field which will do this automatically.
To have the multi-line's height increase automatically, you can set the number of lines displayed to 1, add the CSS class "autogrow-multiline" to the field, and then use the following JavaScript:
//auto-expanding textarea $(document).on("change input focus", ".autogrow-multiline textarea, .autogrow-multiline .rich-text-editor", function() { $(this).css({'height':'auto','overflow-y':'hidden','min-height':'26px'}).height(this.scrollHeight); });
FYI it will not decrease its height if the text is shortened except under specific circumstances. This is once again a limitation to HTML/CSS, which don't like to play nice with finding the height of the text in the field.
Jim,
Thank you for the response. What I was trying to do was to widen the rows of the Web version of the Repository. From what I can tell it can't be done. Let me know if there is any hacks to alter the view of the web repository.