16755: Textarea resizing has been disabled in 2.8

Se agrego una nueva propiedad en el formulario de Textarea que permite si el campo sea de tamañariable o no.
This commit is contained in:
marcelo.cuiza
2015-02-05 13:40:18 -04:00
parent f4a155fd43
commit 80bdbb79b1
4 changed files with 21 additions and 4 deletions

View File

@@ -1938,6 +1938,7 @@ class XmlForm_Field_Textarea extends XmlForm_Field
public $cols = 40;
public $required = false;
public $readOnly = false;
public $resizable = false;
public $wrap = 'OFF';
public $className;
public $renderMode = '';
@@ -1970,9 +1971,9 @@ class XmlForm_Field_Textarea extends XmlForm_Field
if ($this->renderMode == '') {
$this->renderMode = $this->mode;
}
$resizable = ($this->resizable == 1 || $this->resizable == '1') ? 'resize:both;' : 'resize:none;';
$html = '';
$scrollStyle = $this->style . "overflow:scroll;overflow-y:scroll;overflow-x:hidden;overflow:-moz-scrollbars-vertical;resize:none;";
$scrollStyle = $this->style . "overflow:scroll;overflow-y:scroll;overflow-x:hidden;overflow:-moz-scrollbars-vertical;".$resizable;
if ($this->renderMode == 'edit') {
//EDIT MODE
$readOnlyText = ($this->readOnly == 1 || $this->readOnly == '1') ? 'readOnly="readOnly"' : '';
@@ -2037,8 +2038,8 @@ class XmlForm_Field_Textarea extends XmlForm_Field
}
$arrayOptions[$r] = $v;
$scrollStyle = $this->style . "overflow:scroll;overflow-y:scroll;overflow-x:hidden;overflow:-moz-scrollbars-vertical;resize:none;";
$resizable = ($this->resizable == 1 || $this->resizable == '1') ? 'resize:both;' : 'resize:none;';
$scrollStyle = $this->style . "overflow:scroll;overflow-y:scroll;overflow-x:hidden;overflow:-moz-scrollbars-vertical;".$resizable;
$html = '';
if ($this->renderMode == 'edit') {
//EDIT MODE