Closed Bug 675638 Opened 13 years ago Closed 13 years ago

richlistbox rows attribute is simply ignored

Categories

(Core :: XUL, defect)

defect
Not set
normal

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.
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.
(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.
I've updated the docs to remove rows from richlistbox.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
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.