Actions
Bug #5674
closedpkg_edit - XML tag 'textarea' missing rows, cols and wrap options
Start date:
12/21/2015
Due date:
% Done:
0%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:
Description
textarea is missing code to define the rows, cols and wrap values.
(suggest setting some default values)
$rows = $pkga['rows'] ?: '10';
$cols = $pkga['cols'] ?: '50';
$wrap = $pkga['wrap'] ?: 'wrap="off style="white-space:nowr
Adding the following: (Note- cols is not being defined with this setting below).
>setAttribute('rows', $rows)
>setAttribute('cols', $cols)
->setAttribute('wrap', $wrap);
Updated by Anonymous about 10 years ago
- Status changed from New to Feedback
- Assignee set to BBcan177 .
Just to clarify, do you mean that:
- 2.2.x XML allows you to specify height/width/wrapping but even though you XML contains those tags, they don't work on 2.3
- You are using the setAttribute() methods as shown above, but they are not working as you expected?
Updated by BBcan177 . about 10 years ago
1) Looks like the same issue in 2.2.x
2) Its pkg_edit.php, so can't add any setAttribute tags to the XML files. The rows, cols, and wrap are XML tags but there is no supporting code for setAttribute in pkg_edit.
Updated by Anonymous about 10 years ago
Added support as described.
rows, cols, and wrap tags are supported in XML via new setRows() and setCols() methods
Updated by Anonymous about 10 years ago
- Status changed from Feedback to Resolved
Updated by BBcan177 . over 9 years ago
Thanks... I sent Steve a message a few mins ago to ignore those comments... Sorry! :)
Actions