Project

General

Profile

Actions

Bug #5725

closed

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

Added by Pi Ba almost 6 years ago. Updated almost 6 years ago.

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

0%

Estimated time:
Plus Target Version:
Release Notes:
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.

Actions #1

Updated by Steve Beaver almost 6 years ago

What solution do you suggest?

Actions #2

Updated by Pi Ba almost 6 years ago

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

Actions #3

Updated by Steve Beaver almost 6 years ago

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

Actions #4

Updated by Steve Beaver almost 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Steve Beaver
Actions #5

Updated by Steve Beaver almost 6 years ago

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

Thanks

Actions #6

Updated by Steve Beaver almost 6 years ago

  • Status changed from Assigned to Resolved
Actions #7

Updated by Chris Buechler almost 6 years ago

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

Updated by Pi Ba almost 6 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..

Actions

Also available in: Atom PDF