When I add a select form item with AHAH like this:
$form['add_type'] = array(
'#type' => 'select',
'#title' => t('Some title'),
'#description' => t('Some description'),
'#default_value' => 0,
'#options' => $options,
'#required' => TRUE,
'#ahah' => array(
'event' => 'change',
'path' => 'some/path-ahah',
'wrapper' => 'type-wrapper',
'method' => 'replace',
'effect' => 'none',
'progress' => array(
'type' => 'throbber',
),
),
);
and change it (call AHAH callback function) I see, that at the right of my select form item appears throbber, but description also goes to the right of that throbber from the next line and all content under select goes up.
How can I solve this problem?
Comments
Comment #1
Jeff Burnz CreditAttribution: Jeff Burnz commentedIs the description being output in a DIV? Can you check that - I don't recall adding floats or anything to descriptions or selects.
Comment #2
fermer CreditAttribution: fermer commentedYes,
<div class="description">Some description</div>
Comment #3
fermer CreditAttribution: fermer commentedI solved this problem by adding style clear:both to class .description in file layout.css. Hope this info helps others.
I think this is bug and needs to work with it and create patch.
Some info I found at http://drupal.org/node/286031#comment-938213
Comment #4
fermer CreditAttribution: fermer commentedAnybody have this problem?
Comment #5
Jeff Burnz CreditAttribution: Jeff Burnz commentedDon't worry about a patch for this, I will certainly fix this in the next version.
Comment #6
fermer CreditAttribution: fermer commentedThanks, Jeff