<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>504920</bug_id>
          
          <creation_ts>2025-05-28 16:13:07 +0000</creation_ts>
          <short_desc>&quot;Puzzle solved&quot; text clipping if window is too small</short_desc>
          <delta_ts>2025-05-29 22:00:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Fifteen Puzzle widget</component>
          <version>6.3.5</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jan Bidler">janbidler00</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>cwo.kde</cc>
    
    <cc>nate</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/kdeplasma-addons/-/commit/eba3ea1794114b7248f461b26cf36d28d9f5530b</cf_commitlink>
          <cf_versionfixedin>6.4.0</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2428387</commentid>
    <comment_count>0</comment_count>
    <who name="Jan Bidler">janbidler00</who>
    <bug_when>2025-05-28 16:13:07 +0000</bug_when>
    <thetext>SUMMARY
if the widget/window size is too small, the &quot;puzzle solved&quot; 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 &quot;öst. Versuchen Sie es ern&quot;)

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2428686</commentid>
    <comment_count>1</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-05-29 13:34:53 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/831</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2428830</commentid>
    <comment_count>2</comment_count>
    <who name="cwo">cwo.kde</who>
    <bug_when>2025-05-29 19:54:51 +0000</bug_when>
    <thetext>Git commit d0ad03e9f7f678270fcb856d13ae77785a1bee14 by Christoph Wolk.
Committed on 29/05/2025 at 19:41.
Pushed by cwo into branch &apos;master&apos;.

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 &quot;Don&apos;t do
that then&quot; case (if you want to play on a 18×18 grid, don&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2428835</commentid>
    <comment_count>3</comment_count>
    <who name="cwo">cwo.kde</who>
    <bug_when>2025-05-29 20:11:04 +0000</bug_when>
    <thetext>Git commit eba3ea1794114b7248f461b26cf36d28d9f5530b by Christoph Wolk.
Committed on 29/05/2025 at 20:06.
Pushed by cwo into branch &apos;Plasma/6.4&apos;.

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 &quot;Don&apos;t do
that then&quot; case (if you want to play on a 18×18 grid, don&apos;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 &lt;cwo.kde@posteo.net&gt;

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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>