Home » XML » XML_XUL » Bug #2184
element listbox doesnt have got correct number of columns
Details
| Submitted | 2004-08-21 15:30 UTC |
|---|---|
| From | damien at hexysoft dot com |
| Assigned | amir |
| Status | Closed |
| Package | XML_XUL |
| PHP Version | 5.0.0 |
| OS | All |
| Roadmaps | (Not assigned) |
Comments
[2004-08-21 15:30 UTC] damien at hexysoft dot com
Description:
------------
failed when loading a xul file containing a listbox with more than one colunm. The private variable _columns in ListBox.php is always set to NULL.
Reproduce code:
---------------
Xul file:
<listbox id="listBots" flex="1">
<listhead>
<listheader label="Available Bots"/>
<listheader label="Date"/>
</listhead>
<listcols>
<listcol flex="1" />
<listcol flex="1" />
</listcols>
</listbox>
Php file:
$doc = &XML_XUL::loadFile('interface.xul');
$lb1 = &$doc->getElementById('listBots');
$lb1->addItem( array($bot['name'], $bot['date']), $bot['name'] ); // failed because $lb1->_columns == NULL or it must be set to 2
[2006-04-21 15:13 UTC] amir at php dot net
This bug has been fixed in CVS.
If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.
IMO There's no reason for $_columns = null;