Bug 378281 - column width in messages list view not retained
Summary: column width in messages list view not retained
Status: REPORTED
Alias: None
Product: kmail2
Classification: Applications
Component: UI (show other bugs)
Version: 5.8.3
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-30 14:16 UTC by Martin Tlustos
Modified: 2020-05-25 21:06 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Tlustos 2017-03-30 14:16:09 UTC
The column width in kmail message list is not retained after a restart, especially (but not only) when started within kontact. The changes happen randomly, sometimes the columns are very tight, sometimes wider.
Comment 1 kai50 2017-12-09 17:45:45 UTC
Can confirm this bug in two different computers after upgrading from openSUSE Leap 42.2 to Leap 42.3. The column widths in the classic (traditional) list view are not retained after a restart. The column widths must be adjusted manually after every restart.
Comment 2 Martin Tlustos 2018-07-24 14:32:15 UTC
It's still there in 5.8.3. A workaround is to click the column headings and choose "adjust column width" (not sure, my settings are German).
A possible solution would be to add a setting to always automatically adjust column widths.
Comment 3 Attila 2018-09-23 13:06:39 UTC
(In reply to Martin Tlustos from comment #2)
> It's still there in 5.8.3. A workaround is to click the column headings and
> choose "adjust column width" (not sure, my settings are German).
> A possible solution would be to add a setting to always automatically adjust
> column widths.

Unfortunately the workaround doesn't help permanently. By the way it is called "Adjust columns sizes". I have to adjust the column sizes almost after every restart of KMail.
Comment 4 Daimonion 2018-09-25 17:53:31 UTC
I can confirm this, very annoying bug.
Comment 5 Dennis Menschel 2020-05-25 21:06:18 UTC
I can also confirm this bug.

### Affected Versions

- KMail 19.04.3-0ubuntu2 (Kubuntu 19.10)
- KMail 19.12.3-0ubuntu1 (Kubuntu 20.04 LTS)


### Steps to reproduce

1. Start Kontact. This can be done on a freshly installed system and you don't
   need to create an account either. Note that the window is not maximized.
2. Select the mail-view inside Kontact.
3. Maximize the window.
4. From the menu, select View --> Message List --> Theme --> Classic.
5. Close and restart Kontact a few times.


### What is the current bug behavior?

Occasionally the first two columns "subject" and "sender" will shrink from
restart to restart while the last column "date" stays visible.
After about 10 to 20 restarts of Kontact, only the last column "date" will be
visible while the first to columns will have shrunken to a width of almost zero.


### What is the expected correct behavior?

The columns' width should stay the same between restarts even when the window
is maximized.


### Further observations

- When starting KMail directly instead of using Kontact, the bug still happens,
  but less frequently.
- There seems to be a race condition with KMail maximizing its window and
  recalculating its columns' width.
- The bug does not happen if Kontact starts with another view
  (e.g. the calendar) instead of the mail-view.
  If you switch from mail- to calendar-view before closing Kontact and then
  switch back from calendar- to mail-view after restarting Kontact,
  the columns in the mail-view stay the same.


### Possible fixes

I've successfully tested the following workaround with the aforementioned
versions of KMail/Kubuntu:

1. If the window (of KMail or Kontact) is maximized, click the maximize-button
   on the window decoration to unmaximize it.
2. Manually move the window in the top-left corner of the screen.
3. Manually resize the window by dragging the lower-right corner of Kontact
   to the lower-right corner of the screen, so that the windowed position and
   size are now the same as if the window had been maximized. Confirm that the
   window decoration does not treat the window as being maximized.
4. Close Kontact and restart it.
   The window manager might treat the window as maximized again,
   but the column width should now stay the same between restarts.