Closed Bug 298638 Opened 20 years ago Closed 19 years ago

empty <listcols/> element affects default alignment of <listcell/> text

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: shaver, Unassigned)

Details

(Keywords: helpwanted)

Attachments

(1 file)

463 bytes, application/vnd.mozilla.xul+xml
Details
Inserting an empty <listcols/> element in a <listbox/> changed the default
alignment of text in a <listcell/> from right to left.

Test case coming up.
Attached file testcase
Keywords: helpwanted
Basically if you leave out the <listcols> then we guess you want a single column of the width of the listbox. Your second <listcell> thereby gets squashed in at the right because there's no corresponding <listcol> to tell it what to do. However when you specify the <listcols> then we assume you know what you're doing. In this case you don't, and you've specified zero columns. All the columns then count as extra columns and just get left-aligned by default.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: