diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2015-12-22 12:43:09 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2015-12-22 12:43:09 -0500 |
commit | e5274f512d9e5c590cf117fc3bf1ac04e3a4100f (patch) | |
tree | 2130e994e2586d2a048ca7086226eeb3c511356c /src | |
parent | b5326b1de147f2b6433770b0b0fbab3c421b978a (diff) | |
download | pfsense-e5274f512d9e5c590cf117fc3bf1ac04e3a4100f.zip pfsense-e5274f512d9e5c590cf117fc3bf1ac04e3a4100f.tar.gz |
Move width:auto style to textarea handler in pkg_edit.php
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/local/www/classes/Form/Textarea.class.php | 4 | ||||
-rw-r--r-- | src/usr/local/www/pkg_edit.php | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/usr/local/www/classes/Form/Textarea.class.php b/src/usr/local/www/classes/Form/Textarea.class.php index 699186e..1ca879e 100644 --- a/src/usr/local/www/classes/Form/Textarea.class.php +++ b/src/usr/local/www/classes/Form/Textarea.class.php @@ -32,9 +32,7 @@ class Form_Textarea extends Form_Input protected $_value; protected $_attributes = array( 'rows' => 5, - 'cols' => 60, - 'class' => array('form-control' => true), - 'style' => "width: auto;" + 'class' => array('form-control' => true) ); public function __construct($name, $title, $value) diff --git a/src/usr/local/www/pkg_edit.php b/src/usr/local/www/pkg_edit.php index bdd7949..f046748 100644 --- a/src/usr/local/www/pkg_edit.php +++ b/src/usr/local/www/pkg_edit.php @@ -1041,7 +1041,9 @@ foreach ($pkg['fields']['field'] as $pkga) { if ($pkga['wrap'] == "off") { $grp->setAttribute("wrap", "off"); - $grp->setAttribute("style", "white-space:nowrap;"); + $grp->setAttribute("style", "white-space:nowrap; width: auto;"); + } else { + $grp->setAttribute("style", "width: auto;"); } if ($grouping) { |