From 01fc8100531304e6b3d05faf0325feabbd60ade8 Mon Sep 17 00:00:00 2001 From: Julio Cesar Laura Date: Fri, 22 Aug 2014 16:55:24 -0400 Subject: [PATCH] BUG 13646 Text Area width and height can be altered in a dynaform mode view SOLVED --- gulliver/system/class.xmlform.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gulliver/system/class.xmlform.php b/gulliver/system/class.xmlform.php index 0522c559d..a15f864b5 100755 --- a/gulliver/system/class.xmlform.php +++ b/gulliver/system/class.xmlform.php @@ -324,8 +324,8 @@ class XmlForm_Field return 1; } - if(isset($this->mode) && $this->mode == "view" && ($this->type == "text" || $this->type == "currency" || $this->type == "percentage" || $this->type == "textarea" || $this->type == "hidden" || $this->type == "suggest")){ - return 1; + if(isset($this->mode) && $this->mode == "view" && ($this->type == "text" || $this->type == "currency" || $this->type == "percentage" || $this->type == "textarea" || $this->type == "hidden" || $this->type == "suggest")){ + return 1; } if (! $this->sqlConnection) { @@ -1965,7 +1965,7 @@ class XmlForm_Field_Textarea extends XmlForm_Field } $html = ''; - $scrollStyle = $this->style . "overflow:scroll;overflow-y:scroll;overflow-x:hidden;overflow:-moz-scrollbars-vertical;"; + $scrollStyle = $this->style . "overflow:scroll;overflow-y:scroll;overflow-x:hidden;overflow:-moz-scrollbars-vertical;resize:none;"; if ($this->renderMode == 'edit') { //EDIT MODE $readOnlyText = ($this->readOnly == 1 || $this->readOnly == '1') ? 'readOnly="readOnly"' : ''; @@ -2031,7 +2031,7 @@ 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;"; + $scrollStyle = $this->style . "overflow:scroll;overflow-y:scroll;overflow-x:hidden;overflow:-moz-scrollbars-vertical;resize:none;"; $html = ''; if ($this->renderMode == 'edit') { //EDIT MODE