Hi all,
Due to an odd bug in IE7 with select dropdowns and background images,
I need to insert a space (or newline) between my closing </select> tag
and the </div> that follows it in order for it to display correctly.
Example HTML:
<div><div class="hint">Please select your language</div>
<select name="language" id="language">
<option value="English" label="English" selected="selected">English</option>
</select></div><br/><div>
My current decorators look like:
// Form decorators
$optionsForm->setDecorators(array(
array('FormElements', array('separator' => '<br />')),
array('HtmlTag', array('tag' => 'div', 'class' => 'form')),
'Form'
));
// Element decorators
$optionsForm->setElementDecorators(array(
'ViewHelper',
array('Description', array('tag' => 'div', 'placement' => 'PREPEND')),
'Errors',
'HtmlTag',
array('Label', array('tag' => 'strong', 'class' =>
'form_element_label')),
));
I still haven't quite figured out this whole decorator thing yet so if
anyone could assist me in putting a space/newline on my Select element
it would be much appreciated :)
Thanks,
Al