This is post is now quite old and the the information it contains may be out of date or innacurate.

If you find any errors or have any suggestions to update the information please let us know or create a pull request on GitHub

Problem: You are dutifully setting your size attribute in your Zend Form class and you input elements are being rendered with that size attribute. However if Javascript is enabled and you are using Dojo for your forms, the size attribute gets dropped.

Solution: To set the width on dojo form elements you must use the width css operator. eg

$form->getElement('blah')->setAttrib('style'=>'width: 50em;');

So simple once you know how!


        <div style="font-size: .6em;"><a href="" rel="nofollow">Why I like jQuery (over <b>Dojo</b>) | Devon Hillard Tech Blog</a><br><a href="" rel="nofollow">Daily <b>Dojo</b> of Joshua James » Blog Archive » Openings, Part 2</a><br><a href="" rel="nofollow">Cool Portlets added to <b>Dojo</b>! « SOS</a><br><a href="" rel="nofollow"><b>dojo</b>.beer() in Dublin June 6th « SOS</a><br><a href="" rel="nofollow">DojoCampus » Blog Archive » <b>Dojo</b>.beer() - Barcelona, June 17th</a><br><a href="" rel="nofollow">how to make contact <b>form</b> in WP | My Life | My Journey</a><br><a href="" rel="nofollow">Tech Blog » Blog Archive » Google maps info window <b>size</b> problem <b>...</b></a><br><a href="" rel="nofollow">Nearby wind farm may double in <b>size</b> - Pantagraph | The Green Report</a><br><a href="" rel="nofollow"><b>zend framework</b> losing session on swf/flash upload | GS Design</a><br><a href="" rel="nofollow"><b>Zend Framework</b>: Connecting to 2 databases | eKini: Web Developer Blog</a><br><a href="" rel="nofollow">Extending the Models in <b>Zend Framework</b> = Better readability + <b>...</b></a><br></div>