Open Bug 1834656 Opened 1 year ago Updated 2 months ago

Resizing column width is very difficult since version 115. Improve the elastic resizing of the tree view columns.

Categories

(Thunderbird :: Folder and Message Lists, defect, P3)

Thunderbird 115
Unspecified
All

Tracking

(thunderbird_esr102 unaffected, thunderbird_esr115 wontfix, thunderbird128- wontfix)

Tracking Status
thunderbird_esr102 --- unaffected
thunderbird_esr115 --- wontfix
thunderbird128 - wontfix

People

(Reporter: aleca, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

(Keywords: regression, Whiteboard: [Supernova3p])

Attachments

(1 file)

When resizing the tree view columns a fixed width value is set: https://searchfox.org/comm-central/rev/5391ea879779884999142a67920e99c83ea356bd/mail/base/content/widgets/tree-view.mjs#2083

This works okay as it doesn't allow to resize columns outside the limits of the table layout, but unfortunately it doesn't work as well as 102 used to.

The old XUL tree had a more "elastic" behavior in which a flex value was set on the columns in order to let them grow or shrink based on the size of the viewport or the application.
That allowed a more natural proportional sizing of the columns.

It would be nice to emulate that behavior and improve the experience of our tree view columns.

Version: unspecified → Thunderbird 115

This is something that we will explore during this cycle to improve the general usability of the tree view, but it something that requires more thinking and prototyping so for now we're going to put it in the backlog.

Assignee: leftmostcat → nobody
Severity: -- → N/A
Priority: -- → P3
See Also: → 1843014
See Also: → 1850677
Duplicate of this bug: 1854705
Duplicate of this bug: 1853363
Duplicate of this bug: 1850677
Duplicate of this bug: 1855116
Duplicate of this bug: 1856252
Duplicate of this bug: 1868163

TB 115.9.0

I have tried to comprehend how the column positioning is supposed to work, without success. Nor do I understand why it has been made so complicated. I adjust one column and other columns resize on their own. Sometimes column positioning tracks the mouse, other times not. Sometimes the changes are saved, other times not; it seems to depend on the selection of en-/disabled columns.

Is there an option somewhere that reverts this function to some mindlessly simple column positioning?

From user POV this behavior is a defect+regression.

Severity: N/A → S3
Type: enhancement → defect
Keywords: regression
Summary: Improve the elastic resizing of the tree view columns → Resizing column width is very difficult since version 115. Improve the elastic resizing of the tree view columns.

Can we prioritize this work for the coming months?

Flags: needinfo?(alessandro)
Duplicate of this bug: 1900675
Duplicate of this bug: 1902234
Duplicate of this bug: 1860593
See Also: → 1873326
Duplicate of this bug: 1884083
Duplicate of this bug: 1885233

This something that we will address as part of bug 1850893.
It requires a careful rearchitecture of the columns resizing logic and we shouldn't target 128 ESR.
This is something that needs longer beta testing and iterative rollouts.

Blocks: 1850893
Flags: needinfo?(alessandro)

TB 115.12.0

A further annoyance: After repositioning columns, TB appears to have saved the settings since the columns are where I put them during a previous session (Yay!). Opening TB a second time finds that folder's columns have reverted to the undesired previous setting.
So: position column(s), exit TB, start TB and columns use new settings, exit, start, columns have reverted.

No longer blocks: 1850893
Depends on: 1850893

(In reply to Alessandro Castellani [:aleca] from comment #0)

it doesn't work as well as 102 used to.

Why not keep the behaviour of TB 115.6.1 (see animation)? What's bad about this?

(In reply to chrizilla from comment #19)

Why not keep the behaviour of TB 115.6.1 (see animation)? What's bad about this?

It currently works exactly as your GIF, we didn't change the behavior during this ESR cycle.
The problems start appearing if users resize the last column, which forces a fixed width and it doesn't shrink normally.

I guess we could mitigate the issue by enforcing an "ignore inline width if it's the last column" sort of temporary workaround.

Blocks: 381821
No longer duplicate of this bug: 1902234

Avoiding advocacy, I just want to point out that my original bug report was almost the opposite of what Allesandro is concerned with. My report is that the minimum width of a column was changed to be the width of its name, or at least a few characters of it (e.g., "Prior...") rather than allowing the name to be cut short in order to make the column take up less space. Some columns have only a single glyph or a value (like Priority) where only one or two characters need be seen, and the meaning is obvious. If the minimum column width were reduced to 1 character width, then it would save space. Honestly, this doesn't seem to need terribly complex logic. But I'm not a coder.

(In reply to fred from comment #23)

Avoiding advocacy, I just want to point out that my original bug report was almost the opposite of what Allesandro is concerned with. My report is that the minimum width of a column was changed to be the width of its name, or at least a few characters of it (e.g., "Prior...") rather than allowing the name to be cut short in order to make the column take up less space. Some columns have only a single glyph or a value (like Priority) where only one or two characters need be seen, and the meaning is obvious. If the minimum column width were reduced to 1 character width, then it would save space. Honestly, this doesn't seem to need terribly complex logic. But I'm not a coder.

What's your original bug report? I can't find it

EDIT: found it

No longer duplicate of this bug: 1856252

(In reply to Alessandro Castellani [:aleca] from comment #22)
I am sad and very afflicted by your reaction to my comment, which doesn't do me justice. I did not discuss anything. I merely asked a technical question in response to the quoted comments you made in this bug. Nobody can come up with a good idea if questions are stifled. Maybe I could have found a good idea/solution if I was allowed to ask why TB shouldn't behave like the other programs mentioned by users in comment #21. And I also don't think it's fair to blame me for responding to an issue you raised multiple times in this bug.

With regards to the user quotes: It took me quite some time to collect and aggregate them all in one place. I thought it would be a helpful contribution for everyone to quickly see the expectations of users without having to go through all duplicate bug reports. I already distilled user comments into an aggregate summary elsewhere (bug 1889259) and it was appreciated there. I don't know why it's not appreciated this time, but instead even being collapsed! The only difference I see between there and here is that the user echo in bug 1889259 is more inline with planned changes and the user echo in comment #21 apparently is not. But that wouldn't be a reason to hide the user echo. (Quite to the contrary!)

I'm just sad, because it was a lot of (voluntary) work. So if if it's collapsed/hidden, that's honestly truly demotivating for trying to help.

And given that THIS is the place where a "rearchitecture of the columns resizing logic" shall be born, where else but here would be the right place to summarize and take into consideration the user echo in the duplicate bugs of this bug.

Saying "don't reinvent the wheel and use the simple logic like Excel" it's not very nice.

I did not say that !

From the way you wrote it, it seems that you're implying that […]

Please don't imply anything and don't read anything into it that's not there. I asked a technical question. That's all.
Please assume good faith. That's part of the netiquette.

I just asked a technical question which you then proceeded to answering on a technical level (which shows that the question was relevant and had merit). That would have been sufficient. At any rate, I don't think I have merited this personal attack.

(In reply to Alessandro Castellani [:aleca] from comment #22)

File managers and spreadsheets scroll horizontally, so the columns only have to deal with a fixed width and not care about overflowing.
We don't have horizontal scrolling on purpose […]

At the time of comment #21 horizontal scrolling (bug 381821) was not WONTFIXED yet, so it was not clear that this is an absolute no-go.
But horizontal scrolling is not required to implement the behviour users ask for in comment #21, because ...

so we need to enforce a fixed max width to the whole widget

... overflow-x: hidden could be used instead.
This achieves the behaviour displayed in the GIF in comment #19.
As an example, the popular "Total Commander" file manager also works this way (no horizontal scrollbar, overflow-x hidden).

and shrink each column to make them fit, but still maintain their % size in relation to all other columns.

The way I read all the "expected results" in comment #21, this proportional shrinking is exactly what users don't want. They all said something to the effect of

When one column width is […] changed, the other columns are also changed. I can not change the column width Individually.
Column widths should be change[able] individually.

I had only tried to highlight this for consideration. I would have thought that it's important to have an open ear for them.
But anyway, given the reaction in comment #22 I'll refrain from further trying to contribute to the resolution of this issue.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: