Bug #5725
closed
Form_Textarea->setNoWrap() does not give expected result, and sets invalid property value wrap=none
Added by Pi Ba almost 9 years ago.
Updated almost 9 years ago.
Description
Form_Textarea->setNoWrap() does not give expected result, and sets invalid property value wrap=none
The attribute wrap only allows 'soft' or 'hard'.
Also this does not control if text will or will not wrap.. But if line break characters are posted when submitting the form.
What i expected was for a horizontal scroll-bar to appear when more text is entered than will fit in the horizontal size.
What solution do you suggest?
Adding css style "white-space: nowrap;" seems to work.
Thanks. I'll test that solution shortly. 'wrap="none" had been reported as working, but I like this better.
- Status changed from New to Assigned
- Assignee set to Anonymous
I don't see where this method is being used by anyone, but I have corrected it just in case :)
Thanks
- Status changed from Assigned to Resolved
- Category changed from Unknown to Web Interface
- Target version set to 2.3
It seems like FireFox handles nowrap differently from chrome.. Its nolonger possible to add a second line of text in FF, even when pressing 'enter'.
For FireFox the desired effect happens with "white-space: pre"
Reading the specification some more it seems like its Chrome that implemented it wrong. I tested with Chromium now and there 'pre' does work properly..
Checking a little more i see you added "width:auto" im not sure what that was supposed to do but it seems to limit the text area with to +-2 columns which is rather small..
width:100% does set full width set for the column, but cannot be dragged smaller..
Perhaps not specifying the width is best? Then its about 5 bootstrap columns wide..
Can you change the implementation?
p.s.
I have used noWrap() in haproxy-devel package, on the settings tab if you would like to test it there..
Also available in: Atom
PDF