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

Jeff Burnz’s picture

Is the description being output in a DIV? Can you check that - I don't recall adding floats or anything to descriptions or selects.

fermer’s picture

Yes,
<div class="description">Some description</div>

fermer’s picture

I 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

fermer’s picture

Status: Active » Needs work

Anybody have this problem?

Jeff Burnz’s picture

Assigned: Unassigned » Jeff Burnz

Don't worry about a patch for this, I will certainly fix this in the next version.

fermer’s picture

Thanks, Jeff