Project

General

Profile

Bug #20361 ยป 10987.diff

Administrator Admin, 2009-04-27 00:21

View differences:

t3lib/class.t3lib_tceforms.php (working copy)
$retVal = ' '.$wAttrib.'="'.$size.'"';
} else { // Setting width by style-attribute. 'cols' MUST be avoided with NN6+
$pixels = ceil($size*$this->form_rowsToStylewidth);
// override width with userTS
$userTs = $GLOBALS['BE_USER']->getTSConfigProp('options');
if ($textarea) {
if (isset($userTs['textareaWidth']) && t3lib_div::intInRange($userTs['textareaWidth'], 10, 5000)) {
$pixels = $userTs['textareaWidth'];
}
}
$theStyle = 'width:'.$pixels.'px;'.$this->defStyle.$this->formElStyle($textarea?'text':'input');
$retVal = ' style="'.htmlspecialchars($theStyle).'"';
    (1-1/1)