Closed Bug 83741 Opened 24 years ago Closed 24 years ago

can't dynamically add columns to an outliner

Categories

(Core :: XUL, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: hewitt, Assigned: hewitt)

Details

Attachments

(3 files)

I'm trying to repair a rotting feature in Document Inspector which allowed you to dynamically add columns to the DOM tree. Since I'm re-writing this tree to use an rdf-based outliner, I'll need outliner to have this capability. Currently, nsOutlinerBodyFrame::EnsureColumns builds of the structure of column information, but it only does this upon construction. If new outlinercol elements are added via JS, this structure is never updated and the new columns go unrecognized. I'll smack together a fix for this in a segundo.
Status: NEW → ASSIGNED
Attached patch patch to fixSplinter Review
There are several ways to fix this problem - the patch above is the simplest one I could come up with, not necessarily the best. It would be nice to rebuild the column cache with a document observer each time an outlinercol is added/removed - but that requires a lot more code.
i gave hewitt some changes on irc. with those changes, sr=hyatt. i suggest posting a third patch so that the reviewer can see it post-all my comments.
May God have mercy on us all. The 212 bug spam-o-rama is Now!
QA Contact: aegis → jrgm
fixed
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: