diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 086ea4425..ac03d0f66 100644 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -1498,13 +1498,14 @@ class XmlForm_Field_Textarea extends XmlForm_Field { if ($this->renderMode == '') $this->renderMode = $this->mode; $html = ''; + $scrollStyle = $this->style . "overflow:scroll;overflow-y:scroll;overflow-x:hidden;overflow:-moz-scrollbars-vertical;"; if ($this->renderMode == 'edit'){ //EDIT MODE $readOnlyText = ($this->readOnly == 1 || $this->readOnly == '1')? 'readOnly="readOnly"':''; $html .= ''; @@ -1542,6 +1543,7 @@ class XmlForm_Field_Textarea extends XmlForm_Field { $r = 1; foreach ( $values as $v ) { + $scrollStyle = $this->style . "overflow:scroll;overflow-y:scroll;overflow-x:hidden;overflow:-moz-scrollbars-vertical;"; $html = ''; if ($this->renderMode == 'edit'){ //EDIT MODE $readOnlyText = ($this->readOnly == 1 || $this->readOnly == '1')? 'readOnly="readOnly"':''; @@ -1549,7 +1551,7 @@ class XmlForm_Field_Textarea extends XmlForm_Field { $html .= 'id="form['.$owner->name.']['.$r.']['.$this->name.']" '; $html .= 'name="form['.$owner->name.']['.$r.']['.$this->name.']" '; $html .= 'wrap="hard" cols="'.$this->cols.'" rows="'.$this->rows.'" '; - $html .= 'style="'.$this->style.'" '; + $html .= 'style="'.$scrollStyle.'" '; $html .= $this->NSDefaultValue().' '; $html .= $this->NSRequiredValue().' '; $html .= $this->NSGridType().' '; @@ -1558,12 +1560,11 @@ class XmlForm_Field_Textarea extends XmlForm_Field { $html .= $this->htmlentities($v, ENT_COMPAT, 'utf-8'); $html .= ''; }else{ //VIEW MODE - $html .= '
' . $this->htmlentities($v, ENT_COMPAT, 'utf-8') . '
'; $html .= '';