When I create a FPTextField object :
$elementos[]=new FPTextField(array(
"name" => 'nacimiento',
"title" => 'Fec. nacimiento: ',
"required" => false,
"valid_RE" => FP_VALID_ANYTEXT,
"size" => 12,
"max_length" => 256,
"readonly" => true,
"id" => 'nacimiento',
"wrapper" => &$leftWrapper,
"value"=>$fila['nacimiento']
));
I spected the size = 12 but the size apears = 16
I found the error in the class definition:
File : FPTextField.class.php
<?php
/**
* @author Ilya Boyandin <ilyabo@gmx.net>
*/
class FPTextField extends FPElement {
var $_size;
var $_readOnly;
function FPTextField($params)
{
FPElement::FPElement($params);
/*it said if (isset($this->_size))*/
// it must be:
if (isset($params["size"]))
$this->_size = $params["size"];
else
$this->_size = 16;
if (isset($params['readonly']))
$this->_readOnly = $params["readonly"];
}
.............