Bug 512298

Summary: Application Launcher has different minimal sizes depending if the Panel is horizontal or vertical
Product: [Plasma] plasmashell Reporter: Fernando M. Muniz <fernandommuniz>
Component: Application Launcher (Kickoff) widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: cwo.kde, kde, mikel5764, nate, noahadvs
Priority: NOR    
Version First Reported In: 6.5.2   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Issue on Plasma 6.5.2
Issue on Plasma 6.5.3

Description Fernando M. Muniz 2025-11-18 15:48:28 UTC
Created attachment 186924 [details]
Issue on Plasma 6.5.2

STEPS TO REPRODUCE
1. Reduce the Application Menu to its minimal size in a horizontal Panel.
2. Reduce the Application Menu to its minimal size in a vertical Panel.

OBSERVED RESULT
The minimal/default Application Menu sizes are different by a few pixels.

EXPECTED RESULT
The minimal/default Application Menu size should be the same.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.5.2
KDE Frameworks Version: 6.20.0
Qt Version: 6.10.0
Kernel Version: 6.17.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-11300H @ 3.10GHz
Memory: 9 GB of RAM (8.1 GB usable)
Graphics Processor 1: Intel® Iris® Xe Graphics
Graphics Processor 2: NVIDIA GeForce GTX 1650
Manufacturer: LENOVO
Product Name: 82MG
System Version: IdeaPad Gaming 3 15IHU6
Comment 1 David Edmundson 2025-11-18 22:55:46 UTC
Found it.

    readonly property int minimumGridRowCount: Math.min(Screen.desktopAvailableWidth, Screen.desktopAvailableHeight) * Screen.devicePixelRatio < KickoffSingleton.gridCellSize * 4 + (fullRepresentationItem ? fullRepresentationItem.normalPage.preferredSideBarWidth : KickoffSingleton.gridCellSize * 2) ? 2 : 4


as the panel moves the desktopAvailableWidth/Height changes. This is working as coded. 

---

>The minimal/default Application Menu size should be the same.

Why?
Comment 2 Fernando M. Muniz 2025-11-19 04:11:08 UTC
(In reply to David Edmundson from comment #1)
> Found it.
> 
>     readonly property int minimumGridRowCount:
> Math.min(Screen.desktopAvailableWidth, Screen.desktopAvailableHeight) *
> Screen.devicePixelRatio < KickoffSingleton.gridCellSize * 4 +
> (fullRepresentationItem ?
> fullRepresentationItem.normalPage.preferredSideBarWidth :
> KickoffSingleton.gridCellSize * 2) ? 2 : 4
> 
> 
> as the panel moves the desktopAvailableWidth/Height changes. This is working
> as coded. 
> 
> ---
> 
> >The minimal/default Application Menu size should be the same.
> 
> Why?

I supposed this would cause problems in low resolutions.
Comment 3 Fernando M. Muniz 2025-11-25 14:25:34 UTC
Created attachment 187160 [details]
Issue on Plasma 6.5.3

(In reply to David Edmundson from comment #1)
> Found it.
> 
>     readonly property int minimumGridRowCount:
> Math.min(Screen.desktopAvailableWidth, Screen.desktopAvailableHeight) *
> Screen.devicePixelRatio < KickoffSingleton.gridCellSize * 4 +
> (fullRepresentationItem ?
> fullRepresentationItem.normalPage.preferredSideBarWidth :
> KickoffSingleton.gridCellSize * 2) ? 2 : 4
> 
> 
> as the panel moves the desktopAvailableWidth/Height changes. This is working
> as coded. 
> 
> ---
> 
> >The minimal/default Application Menu size should be the same.
> 
> Why?

But if that's the case, then why the difference is just a single pixel?
Comment 4 cwo 2025-11-27 18:47:20 UTC
This is Application Launcher, not Application Menu. Moving it there.
Comment 5 Nate Graham 2025-12-08 17:13:20 UTC
This is already fixed in Plasma 6.5.4. You're using 6.5.2, where there was a one-pixel breakage here. Well-spotted. :)
Comment 6 Nate Graham 2025-12-08 17:18:19 UTC
My mistake, sorry. I wasn't testing properly; this is indeed an issue, and making a vertical panel Kickoff into a Horizontal panel kickoff does lose a pixel and cause the view to have only three columns.