Closed
Bug 136174
Opened 23 years ago
Closed 6 years ago
Auto-width function for all tree widget columns (Ctrl+NumpadPlus)
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: deanis74, Assigned: janv)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
4.77 KB,
patch
|
Details | Diff | Splinter Review |
Add a function to auto-size a column to it's widest member. This can be used
when double-clicking the column header or when pressing ctrl-+ (bug 135749).
From bug 135749:
------- Additional Comment #3 From Kyle Yuan 2002-04-08 01:36 -------
There isn't any functions that can adjust the width of all columns to fit their
contents. right?
------- Additional Comment #4 From Jan Varga 2002-04-08 01:47 -------
No, but there's an internal method GetCellWidth() which is used for example in
CalcMaxRowWidth()
Dean, could you give me a proposal of this function? If hewitt has no time, I
can have a try.
This bug should probably be about auto-sizing a specific column, like
double-clicking the column splitter in the list header does in Windows explorer.
We should implement a double-click on the column splitter in the header to
auto-size as well.
Then bug 135749 can take care of calling this function for all columns when
Ctrl-+ is pressed.
Comment 4•23 years ago
|
||
Keep in mind that native Windows trees allow the total width of all columns to
be different from the width of the tree. Double-clicking on the right edge of a
column title in a native Windows tree makes that column big enough to contain
all of its contents. We can do that if the user double-clicks on one column,
but autosizing all columns at once will need different logic.
Jan, I found some problems in nsTreeBodyFrame::GetCellWidth():
1) It doesn't count image margin of nsXULAtoms::moztreeimage;
2) Sometimes, it can't get image, i.e. GetImageSize() return 0 for width. I
tried to find the answer, but it's too complex.
Assignee | ||
Comment 6•23 years ago
|
||
> 1) It doesn't count image margin of nsXULAtoms::moztreeimage;
I have no idea why it is not there, please fix it and make sure that XBL select
works right.
> 2) Sometimes, it can't get image, i.e. GetImageSize() return 0 for width. I
tried to find the answer, but it's too complex.
This can be the case when image has not been loaded yet.
I filed bug 155510 for the autosizing function for tree column.
Comment 10•21 years ago
|
||
I'm changing the summary to make this bug easier to find.
Kyle Yuan, do you have any update on the progress of this bug?
Thanks,
Prog.
Summary: Auto-width function → Auto-width function for all tree widget columns (Ctrl+NumpadPlus)
Comment 11•21 years ago
|
||
No, I haven't worked on this for years. Reassigning to the default owner.
Assignee: kyle.yuan → varga
QA Contact: shrir
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: xptoolkit.widgets
![]() |
||
Comment 12•10 years ago
|
||
Is this and the dependent bug on anybody's radar?
Assignee | ||
Comment 13•6 years ago
|
||
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: 6 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•