Bug #5725
closedForm_Textarea->setNoWrap() does not give expected result, and sets invalid property value wrap=none
0%
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.
Updated by Pi Ba almost 9 years ago
Adding css style "white-space: nowrap;" seems to work.
Updated by Anonymous almost 9 years ago
Thanks. I'll test that solution shortly. 'wrap="none" had been reported as working, but I like this better.
Updated by Anonymous almost 9 years ago
- Status changed from New to Assigned
- Assignee set to Anonymous
Updated by Anonymous almost 9 years ago
I don't see where this method is being used by anyone, but I have corrected it just in case :)
Thanks
Updated by Anonymous almost 9 years ago
- Status changed from Assigned to Resolved
Updated by Chris Buechler almost 9 years ago
- Category changed from Unknown to Web Interface
- Target version set to 2.3
Updated by Pi Ba almost 9 years ago
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..