Bug 503372 - Automatically-sized Size column is too narrow when re-visiting a directory
Summary: Automatically-sized Size column is too narrow when re-visiting a directory
Status: CONFIRMED
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: details mode (other bugs)
Version First Reported In: git-master
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-26 03:19 UTC by Jin Liu
Modified: 2025-04-27 18:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jin Liu 2025-04-26 03:19:40 UTC
SUMMARY
With Automatical Column Size on, the Size column would be correctly sized when you first-time visit a directory which has a sub-directory of more than 1000 items. But when you navigate away then go back to that directory, the Size column would be too narrow.

Debugging shows that when a directory is cached, the data `KItemListView::preferredColumnWidths` receives are all "0 items" for sub-directories.

STEPS TO REPRODUCE
1. `cd` to some directory where a sub-directory has more than 1000 items.
2. `dolphin .`
3. The Size column is wide enough to show "1000 items".
4. Navigate to home.
5. Press Back.

OBSERVED RESULT
The Size column is too narrow to show "1000 items".

EXPECTED RESULT
The Size column has the same width as in step 3.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.80
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.3-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 5600H with Radeon Graphics
Memory: 16 GiB of RAM (15.0 GiB usable)
Graphics Processor: AMD Radeon Graphics
Comment 1 John Kizer 2025-04-27 18:43:16 UTC
I can reproduce this on my Fedora KDE 42 device. Thanks!