Closed
Bug 675638
Opened 13 years ago
Closed 13 years ago
richlistbox rows attribute is simply ignored
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
INVALID
People
(Reporter: mkaply, Unassigned)
Details
The documentation for richlistbox indicated a rows attribute: rows Type: integer The number of rows to display in the element. If the element contains more than this number of rows, a scrollbar will appear which the user can use to scroll to the other rows. To get the actual number of rows in the element, use the getRowCount() method. From: https://developer.mozilla.org/en/XUL/richlistbox#a-rows This atttribute simply doesn't work. IF you set rows on a richlistbox and add 20 items, the richlistbox will grow vertically. Looking at the code: http://mxr.mozilla.org/mozilla2.0/source/toolkit/content/widgets/richlistbox.xml I see no code to even handle this attribute.
Comment 1•13 years ago
|
||
The documentation should just be updated. richlistboxes don't have fixed row heights so determining the height from the number of rows to display isn't really possible.
Reporter | ||
Comment 2•13 years ago
|
||
(In reply to Neil Deakin from comment #1) > The documentation should just be updated. richlistboxes don't have fixed row > heights so determining the height from the number of rows to display isn't > really possible. As I read that, a light came on. Duh :) I'll fix the docs.
Reporter | ||
Comment 3•13 years ago
|
||
I've updated the docs to remove rows from richlistbox.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
Comment 4•6 years ago
|
||
Moving to Core:XUL per https://bugzilla.mozilla.org/show_bug.cgi?id=1455336
Component: XP Toolkit/Widgets: XUL → XUL
You need to log in
before you can comment on or make changes to this bug.
Description
•