avatar AlexRed
3 May 2017

Steps to reproduce the issue

For user custom fields create new custom field type Text area and insert a number for the parameter "Columns".
Edit your superuser profile in frontend, the "Columns" number for Text area seems not working.

Expected result

Actual result

System information (as much as possible)

Joomla 3.7.1dev

Additional comments


avatar AlexRed AlexRed - open - 3 May 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 3 May 2017
avatar AlexRed AlexRed - change - 3 May 2017
The description was changed
avatar AlexRed AlexRed - edited - 3 May 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 May 2017

Issue confirmed. Width of Textarea stay independet of given Columns.

avatar chmst
chmst - comment - 3 May 2017

@AlexRed do you have an example where the columns attribute works as expected, with columns? I'd really like to know how to make this work for an own field. I've never found a textarea where the value for columns is respected - not in JFormField Textarea or in a plain html. I think, the attribute could (should) simply be removed.

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15802.

avatar Bakual
Bakual - comment - 3 May 2017

That just depends on the template. Most probably set a width for input elements using CSS which overrules columns settings (as well as the "size" for a text input).
Not much we can do here, it's how HTML and CSS interact.
In case of Isis it is this rule

input, textarea, .uneditable-input {
    width: 206px;

If you disable that one, the column parameter works as expected.

avatar chmst
chmst - comment - 3 May 2017

Yes, this is what I want to say. The JFormField or custom field have no influence on the template / CSS (except via js, enforcing a change of the width, maybe). So the issue is no issue ;)

avatar laoneo
laoneo - comment - 5 May 2017

It is indeed an issue. IMO, the template should be fixed then as the core should come all the options supported.

avatar Bakual
Bakual - comment - 5 May 2017

Not really. Those attributes just are legacy HTML ones. "Modern" templates specify the width of those elements using CSS instead of HTML attributes. You can still specify the attributes for templates which don't have CSS rules for that.
For those templates using CSS rules for the width, they usually also have classes like "input-small" which help to adjust the width of the elements.

avatar franz-wohlkoenig franz-wohlkoenig - change - 9 May 2017
Status New Discussion
avatar brianteeman
brianteeman - comment - 19 May 2017

sorry but I am closing this as expected behaviour as the css in the admin template (default bootstrap) overrides the value of the columns.

avatar brianteeman brianteeman - change - 19 May 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-05-19 17:40:18
Closed_By brianteeman
avatar brianteeman brianteeman - close - 19 May 2017

Add a Comment

Login with GitHub to post a comment