Open Bug 2073376 Opened 2 months ago Updated 1 month ago

Fixed thread pane width can cause content to be clipped when the main window is significantly narrowed

Categories

(Thunderbird :: Mail Window Front End, enhancement)

Thunderbird 155
x86_64
Linux
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: chmn, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:156.0) Gecko/20100101 Firefox/156.0

Steps to reproduce:

  1. Open Thunderbird using the vertical 3-pane layout:
    Folder Pane | Thread Pane | Message Pane
  2. Give the Thunderbird window enough width so that all three panes are comfortably visible.
  3. Significantly reduce the width of the Thunderbird window, e.g. by opening another tiled window next to it or by resizing it with the window manager.

Environment

  • Thunderbird 155.0.1
  • Arch Linux
  • X11
  • i3 window manager
  • Vertical 3-pane layout
  • Reproducibility: Always on my system

Actual results:

The Thunderbird window itself is resized correctly, and most of the UI adapts to the new window size.

However, the Thread Pane retains its previous width even when the window becomes too narrow to accommodate that width sensibly.

As a result, parts of the 3-pane layout are clipped / pushed outside the usable window area.

This can initially look as if the adjacent window is covering part of Thunderbird. However, the Thunderbird top-level window itself has the correct reduced dimensions.

For example, while reproducing the issue, i3 reported the Thunderbird window at 50% of the available width:

rect:
  x: 2560
  width: 1920
percent: 0.5
floating: auto_off
fullscreen_mode: 0

xwininfo independently reported:

Absolute upper-left X: 2560
Width: 1918
Height: 2114

Expected results:

The Thread Pane should normally retain the width chosen by the user, as intended by bug 1877326.

However, when the main window becomes too narrow to keep that width while maintaining a usable 3-pane layout, the Thread Pane should be allowed to shrink so that the complete layout remains usable.

This appears to be a follow-up / edge case of bug 1877326, implemented in Thunderbird 154. That change intentionally makes the Message Pane absorb window-size changes while keeping the Thread Pane width unchanged.

The issue became noticeable for me after upgrading to Thunderbird 155.0.1.

Possible approach

It might be useful to treat the user-selected Thread Pane width as a preferred width rather than an absolute width.

For example:

  • Keep the Thread Pane at its preferred width while sufficient space is available.
  • Let the Message Pane absorb normal window-size changes.
  • If the Message Pane would fall below its minimum usable width, temporarily shrink the Thread Pane below its preferred width as well.
  • When the window becomes wider again, restore the Thread Pane toward its preferred width.
  • Once the preferred Thread Pane width has been restored, additional space should again go to the Message Pane.

This would preserve the intended behaviour of bug 1877326 for normal resizing while allowing the layout to adapt to large reductions in window width, such as those common with tiling window managers.

OS: Unspecified → Linux
Hardware: Unspecified → x86_64
Component: Untriaged → Mail Window Front End
See Also: → 1877326
You need to log in before you can comment on or make changes to this bug.