put class attribute on menupopup instead of menulist, as that is where et2 looks for it

This commit is contained in:
Ralf Becker 2013-11-04 11:54:51 +00:00
parent cfc3550d6f
commit 88dd91fe2a

View File

@ -261,10 +261,18 @@ class xul_io
case 'menulist': // id,options belongs to the 'menupopup' child
if ($cell['span'])
{
$this->set_attributes($widget,'span,class',$cell['span']);
unset($cell['span']);
list($span, $class) = explode(',', $cell['span']);
if (!empty($span)) $this->set_attributes($widget, 'span', $span);
if (!empty($class))
{
$cell['span'] = ','.$class;
}
else
{
unset($cell['span']);
}
}
// fall-trought
// fall-through
case 'listbox':
if ($cell['type'] != 'select') // one of the sub-types
{