Bug 504920 - "Puzzle solved" text clipping if window is too small
Summary: "Puzzle solved" text clipping if window is too small
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Fifteen Puzzle widget (other bugs)
Version First Reported In: 6.3.5
Platform: Arch Linux Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-28 16:13 UTC by Jan Bidler
Modified: 2025-05-29 22:00 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Bidler 2025-05-28 16:13:07 UTC
SUMMARY
if the widget/window size is too small, the "puzzle solved" text will be clipped out instead of wrapping.

STEPS TO REPRODUCE
1. Place a fifteen widget with the minimum size on your desktop
2. Solve a fifteen puzzle

OBSERVED RESULT
Victory message will be clipped out. (in my german case saying "öst. Versuchen Sie es ern")

EXPECTED RESULT
Either victory message should wrap and be displayed in full, or the minimum size should be increased.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 1600 Six-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B450M DS3H
Comment 1 Bug Janitor Service 2025-05-29 13:34:53 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/831
Comment 2 cwo 2025-05-29 19:54:51 UTC
Git commit d0ad03e9f7f678270fcb856d13ae77785a1bee14 by Christoph Wolk.
Committed on 29/05/2025 at 19:41.
Pushed by cwo into branch 'master'.

applets/fifteenpuzzle: make tiny sizes work better

We allow users to make the applet really small, which can leave it
unplayable in some configurations. Part of that is a clear "Don't do
that then" case (if you want to play on a 18×18 grid, don't make it
barely larger than a stamp) but we can do a much better job at making it
fit on the smallest sizes.

This change enables word wrap for the victory screen labels, replaces
the shuffle button with an icon-only one if its row would not fit, and
fixes a spurious binding (my bad) that can cause the field to escape the
plasmoid size if you resize it in some ways. Along the way, fix an
implicit parameter warning.

M  +12   -0    applets/fifteenPuzzle/package/contents/ui/FifteenPuzzle.qml
M  +1    -7    applets/fifteenPuzzle/package/contents/ui/Piece.qml
M  +1    -1    applets/fifteenPuzzle/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/d0ad03e9f7f678270fcb856d13ae77785a1bee14
Comment 3 cwo 2025-05-29 20:11:04 UTC
Git commit eba3ea1794114b7248f461b26cf36d28d9f5530b by Christoph Wolk.
Committed on 29/05/2025 at 20:06.
Pushed by cwo into branch 'Plasma/6.4'.

applets/fifteenpuzzle: make tiny sizes work better

We allow users to make the applet really small, which can leave it
unplayable in some configurations. Part of that is a clear "Don't do
that then" case (if you want to play on a 18×18 grid, don't make it
barely larger than a stamp) but we can do a much better job at making it
fit on the smallest sizes.

This change enables word wrap for the victory screen labels, replaces
the shuffle button with an icon-only one if its row would not fit, and
fixes a spurious binding (my bad) that can cause the field to escape the
plasmoid size if you resize it in some ways. Along the way, fix an
implicit parameter warning.


(cherry picked from commit d0ad03e9f7f678270fcb856d13ae77785a1bee14)

Co-authored-by: Christoph Wolk <cwo.kde@posteo.net>

M  +12   -0    applets/fifteenPuzzle/package/contents/ui/FifteenPuzzle.qml
M  +1    -7    applets/fifteenPuzzle/package/contents/ui/Piece.qml
M  +1    -1    applets/fifteenPuzzle/package/contents/ui/main.qml

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/eba3ea1794114b7248f461b26cf36d28d9f5530b