Bug 506630 - "Set up a printer connection" UI overflows minimum System Settings window size when opened with a printer already selected
Summary: "Set up a printer connection" UI overflows minimum System Settings window siz...
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_printer_manager (other bugs)
Version First Reported In: 6.4.80
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-05 12:06 UTC by Nate Graham
Modified: 2025-07-26 11:38 UTC (History)
2 users (show)

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


Attachments
Overflowing dialog (474.60 KB, image/png)
2025-07-05 12:06 UTC, Nate Graham
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2025-07-05 12:06:36 UTC
Created attachment 182973 [details]
Overflowing dialog

STEPS TO REPRODUCE
1. Plug in a new, never-before-seen printer
2. When the system notification about configuring the new printer appears, click on it


OBSERVED RESULT
The Printers KCM opens displaying a dialog with overflowing UI elements. See attached screenshot


EXPECTED RESULT
The Printers KCM opens with everything fitting nicely


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.80
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.15.3-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon™ 780M Graphics
Memory: 16 GiB of RAM (14.9 GiB usable)
Graphics Processor: AMD Radeon 780M Graphics


ADDITIONAL INFORMATION
This dialog needs to be huge to fit everything in it. It may be better to turn it into a dedicated page. See also https://develop.kde.org/hig/displaying_content/#page-vs-dialog-vs-overlaysheet
Comment 1 Mike 2025-07-07 18:50:55 UTC
I'm wondering which notification message you're seeing here?  When I attach the printer, the kcm appears automatically (no clicking needed) and defaults to the "Set up a printer..." dialog and the buttons/lists are sizing properly. 

Curious, if you open system settings, size it to it's minimum, then goto Printers and choose add..., what do you see?
Comment 2 Mike 2025-07-07 20:58:45 UTC
Looks like with `kcmshell6 kcm_printer_manager --args --add-printer` it definitely overflows, however, when using the notification or running system settings directly, I get proper sizing of the controls, even when the system settings windows is resized (previously) to it's minimum.

Running kcmshell6 is clearly not working the same way as the system settings main window, meaning it will not save it's size when closed (it always defaults to quite small).

I guess the other question is are you scaling your display at all or just 100%?
Comment 3 Mike 2025-07-09 14:22:10 UTC
I whipped up a branch (kind of rough) that ports the dialog to a kcm page, see if it solves it for you.  Drops some duplicate code and there's probably some tweaking to be done as well: https://invent.kde.org/plasma/print-manager/-/commits/work/noee/find-printer-page
Comment 4 Bug Janitor Service 2025-07-10 13:03:20 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/print-manager/-/merge_requests/259
Comment 5 Mike 2025-07-20 12:07:10 UTC
Git commit 30aa7d5c33bf12e44f49dc69fd12a44e7c418f70 by Mike Noe.
Committed on 20/07/2025 at 11:56.
Pushed by noee into branch 'master'.

kcm/qml: Port FindPrinter module from dialog to KCM page

Make left-side panel to use proper color set

M  +104  -65   src/kcm/ui/FindPrinter.qml

https://invent.kde.org/plasma/print-manager/-/commit/30aa7d5c33bf12e44f49dc69fd12a44e7c418f70