Open
Bug 300687
Opened 19 years ago
Updated 2 years ago
xul listbox doesnt display first cell of items after the rows setting
Categories
(Core :: Layout, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: mossop, Unassigned)
References
(Depends on 1 open bug)
Details
(Keywords: testcase)
Attachments
(1 file)
|
815 bytes,
application/vnd.mozilla.xul+xml
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050713 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050713 Firefox/1.0+ The rows attribute on a listbox sets its size. I am dynamically adding items to the listbox after the window is displayed but for some reason the items added with an index greater than the rows setting lose their first cell. If I do not use rows and instead use a style to set the height a similar thing happens. Testcase coming up. Reproducible: Always Steps to Reproduce:
| Reporter | ||
Comment 1•19 years ago
|
||
Here a listbox with 3 columns is filled with 50 items from javascript. Rows is set to 20. The first 20 items display fine, In the ones after that the first column is missing. If this testcase is altered with rows changed to any other value, that number of items displays fine and the rest don't.
| Reporter | ||
Comment 3•19 years ago
|
||
Possibly related. But it also gave me a workaround for this. Instead of using appentItem to add the list item, just create it and add the cells needed to it, then append the item to the listbox directly and all works. Looks like for some reason the xbl generated cell that bug 176227 talks about isnt created for list items past the size of the list box.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•