Bug 505820

Summary: New folder window sometimes too big
Product: [Frameworks and Libraries] frameworks-kio Reporter: Greeniac <quarro>
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: kde, kdelibs-bugs-null, nate
Priority: NOR    
Version First Reported In: 6.15.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: How it looks like when it's "too big"

Description Greeniac 2025-06-20 05:21:50 UTC
Created attachment 182408 [details]
How it looks like when it's "too big"

SUMMARY
In the new 6.4 update, the new folder window now has an option to change the folder's color, and clicking the option makes the window bigger, but sometimes when quitting this window without creating a folder, the next time you open that window it will be the same size as it would be with the color changing drop out extended, without having it actually extended, so there will be a lot of empty space and it doesn't look good.

STEPS TO REPRODUCE
1. Click the new folder option to open the window.
2. Extend the "Choose custom color or icon" drop out.
3. Quit the window without creating a folder.
4. Click the new folder option to open the window again.

OBSERVED RESULT
Sometimes it would be too big.

EXPECTED RESULT
It should be sized correctly

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.0
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1
Kernel Version: 6.14.11-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-7600K CPU @ 3.80GHz
Memory: 24 GiB of RAM (23.4 GiB usable)
Graphics Processor: AMD Radeon Pro 580X
Manufacturer: Apple Inc.
Product Name: iMac18,3
System Version: 1.0

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2025-06-20 14:49:56 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kwidgetsaddons/-/merge_requests/312
Comment 2 Nicolas Fella 2025-07-04 13:28:16 UTC
Git commit 52275f7bf8ded60f3089d27caa73a33349241710 by Nicolas Fella, on behalf of Harald Sitter.
Committed on 04/07/2025 at 12:24.
Pushed by nicolasfella into branch 'master'.

kcollapsiblegroupbox: don't blow up initial window size

it would cause unnecessary expansion of the layout initially, if we
don't get switched into expanded mode right away. this also effectively
resolves a state desync where isExpanded==false but the fixedheight is
not that of the header right after construction

M  +3    -0    src/kcollapsiblegroupbox.cpp

https://invent.kde.org/frameworks/kwidgetsaddons/-/commit/52275f7bf8ded60f3089d27caa73a33349241710