Project

General

Profile

Bug #5725

Form_Textarea->setNoWrap() does not give expected result, and sets invalid property value wrap=none

Added by Pi Ba over 3 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Web Interface
Target version:
Start date:
01/02/2016
Due date:
% Done:

0%

Estimated time:
Affected Version:
2.3
Affected Architecture:

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.

History

#1 Updated by Steve Beaver over 3 years ago

What solution do you suggest?

#2 Updated by Pi Ba over 3 years ago

Adding css style "white-space: nowrap;" seems to work.

#3 Updated by Steve Beaver over 3 years ago

Thanks. I'll test that solution shortly. 'wrap="none" had been reported as working, but I like this better.

#4 Updated by Steve Beaver over 3 years ago

  • Status changed from New to Assigned
  • Assignee set to Steve Beaver

#5 Updated by Steve Beaver over 3 years ago

I don't see where this method is being used by anyone, but I have corrected it just in case :)

Thanks

#6 Updated by Steve Beaver over 3 years ago

  • Status changed from Assigned to Resolved

#7 Updated by Chris Buechler over 3 years ago

  • Category changed from Unknown to Web Interface
  • Target version set to 2.3

#8 Updated by Pi Ba over 3 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..

Also available in: Atom PDF