Closed Bug 155510 Opened 23 years ago Closed 7 years ago

Double click on column splitter to fit column size

Categories

(Core :: XUL, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: yuanyi21, Assigned: janv)

References

Details

Attachments

(1 obsolete file)

Attached patch implemented autosizing function (obsolete) — Splinter Review
This patch also fixed some other minor bugs: 1) nsTreeBodyFrame::CalcMaxRowWidth(), row width includes hidden columns; 2) nsTreeBodyFrame::GetCellWidth(), sometimes can't get cell's image size; 3) nsTreeBodyFrame::GetCoordsForCellItem() and GetCellWidth(), forgets to count image margin 4) nsTreeBodyFrame::GetCoordsForCellItem(), redundant loop after column matched; I reserved an interface - fitAllColumns - for bug 136174
Status: NEW → ASSIGNED
Whiteboard: seeking r=
Blocks: 136174
Jan, could you r= this fix?
kyle, why are you adding code to nsSplitterFrame ? Shouldn't be doubleclick handled in tree.xml ?
Jan, this double click action is right on splitter, not on tree column header, so we must handle it in splitter code. see http://bugzilla.mozilla.org/show_bug.cgi?id=136174#c3
*** Bug 157962 has been marked as a duplicate of this bug. ***
What about making Ctrl-Gray+ resize all columns to "best fit" at once? (It works in some of Windows grid controls)
Wesha: that's handled in either bug 136174 or bug 135749, i've lost track.
Adding review keyword.
Keywords: review
*** Bug 27346 has been marked as a duplicate of this bug. ***
(In reply to comment #4) > Jan, this double click action is right on splitter, not on tree column header, > so we must handle it in splitter code. see > http://bugzilla.mozilla.org/show_bug.cgi?id=136174#c3 Jan, can you please comment on this? Is a new approach needed? Should the patch be updated? Prog.
Comment on attachment 90060 [details] [diff] [review] implemented autosizing function My patch is 2 years old. I don't think it's still suitable for current code base.
Attachment #90060 - Attachment is obsolete: true
Assignee: kyle.yuan → varga
Status: ASSIGNED → NEW
QA Contact: shrir
Whiteboard: seeking r=
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: xptoolkit.widgets
Ok, apparently this bug also manifests itself in Thunderbird 3.0.3... and there have been 3 issues marked as duplicate of this bug. Are there any plans to get this nearly 8-year-*OLD* bug looked at and perhaps fixed? I don't think this is really an "enhancement" since I believe it is standard (and expected) behavior for columns to auto-resize to fit-to-content when double-clicking the right splitter/handle.
I don't think anyone is going to work on this given the plan to remove the XUL "tree" widget (bug 1446335).
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: