newhck / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

size of input field always max #60

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
starting from the example form-elements.php
When you add a specified size to the textbox it does not change.
ie: 
$form->addTextbox("Textbox:", "field0", "", array("size" => 5));
result: 
<input type="text" name="field0" value="" size="5" class="pfbc-textbox"/> 

What is the expected output? What do you see instead?
The code itself looks ok, for the item. 
But a setting seems to overrule the width.
Is this normal? If so, what is the best way to avoid it? 

What version of the product are you using? On what operating system?
1.07

Original issue reported on code.google.com by sven.lar...@gmail.com on 6 Jul 2010 at 8:53

GoogleCodeExporter commented 8 years ago
The size attribute won't overrule the css definition for the pfbc-textbox 
class.  Instead of "size", you should use the "style" attribute.

$form->addTextbox("Textbox:", "field0", "", array("style" => "width: 200px;"));

Original comment by ajporterfield@gmail.com on 6 Jul 2010 at 12:58