Summary: | Dialog.qml: Custom footer leading and trailing items don't contribute to implicitWidth, which can make them overflow | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kirigami | Reporter: | vovanblhc |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ahiemstra, nate, notmart, pchagias9, plasma-bugs |
Priority: | NOR | ||
Version: | 6.9.0 | ||
Target Milestone: | Not decided | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=493663 | ||
Latest Commit: | https://invent.kde.org/frameworks/kirigami/-/commit/4eead05f96f7bc7f963e4dc25ade272bc375b82c | Version Fixed In: | 6.11 |
Sentry Crash Report: |
Description
vovanblhc
2024-12-22 20:23:49 UTC
I have `American English` set as the `Language` in `System Settings` -> `Region & Language` and I can observe this behavior too. When I right-click `Quit Application` the `Quit Application` option inside the dialog pop-up doesn't fit in the dialog and extends beyond it. Operating System: Arch Linux KDE Plasma Version: 6.2.5 KDE Frameworks Version: 6.9.0 Qt Version: 6.8.1 Kernel Version: 6.6.68-1-lts (64-bit) Graphics Platform: Wayland Processors: 8 × AMD FX(tm)-8350 Eight-Core Processor Memory: 15.5 GiB of RAM Graphics Processor: OLAND As a quicker way of testing, I can reproduce the issue with `LANGUAGE=ru_RU plasma-systemmonitor`. I'll try to fix it. Ahh, this is actually a bug in Kirigami Dialog, similar to Bug 493663. It looks like we forgot to include the width of any custom footer content. Will fix. A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/1696 Git commit 4eead05f96f7bc7f963e4dc25ade272bc375b82c by Nate Graham. Committed on 06/01/2025 at 20:11. Pushed by ngraham into branch 'master'. Dialog: include leading and trailing components in footer implicitWidth 4fb4d656dfa5161ac4676d278bcd7cb08327a753 fixed footer sizing by taking into account the implicitWidth of the DialogButtonBox, which can be wider that the main body content. However leading and trailing footer components were missed, so if any of those are included in a particular Dialog's implementation, its footer may still overflow. Account for those by getting the implicitWidth of the RowLayout item that holds all of them, which also fixes the spacing between items not being included in the calculation. FIXED-IN: 6.11 M +2 -1 src/dialogs/Dialog.qml https://invent.kde.org/frameworks/kirigami/-/commit/4eead05f96f7bc7f963e4dc25ade272bc375b82c |