Bug 431825 - After selecting a pattern in the patterns docker, it becomes impossible to resize the docker below the current width
Summary: After selecting a pattern in the patterns docker, it becomes impossible to re...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Dockers (other bugs)
Version First Reported In: 4.4.2
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-19 19:38 UTC by tomtomtomreportingin
Modified: 2021-01-29 08:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomtomtomreportingin 2021-01-19 19:38:18 UTC
SUMMARY
After you select a pattern in the patterns docker, it becomes impossible to lower the width of the docker to a size below the current width, until Krita is restarted.

STEPS TO REPRODUCE
1. Open the patterns docker.
1. Observe that you can resize the patterns docker to a minimum width of six patterns.
2. Resize the patterns docker to show a width of eight patterns.
3. Select a pattern.
4. Attempt to lower the width of the docker.

OBSERVED RESULT
The width of the docker is unable to be lowered.

EXPECTED RESULT
The width of the docker should be able to be lowered to a minimum of six patterns (or whatever's intended) at all times.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian sid
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.12.9 (Appimage)
Comment 1 Ahab Greybeard 2021-01-22 15:40:29 UTC
I can confirm this for appimages 4.3.0 to the Jan 21 4.4.3 alpha (git bd828ec).

Whatever width the patterns docker is, you can't reduce it to less than that after selecting a pattern. This is the case if it's floating or docked.
Selecting another workspace which normally has the patterns docker at a smaller width doesn't work either.
Comment 2 Halla Rempt 2021-01-29 08:58:02 UTC
Git commit 0c0157b20aece3589e08b6e0d5d3a74b34ced860 by Halla Rempt, on behalf of Mathias Wein.
Committed on 29/01/2021 at 08:57.
Pushed by rempt into branch 'master'.

Fix resizing issues with pattern and gradient choosers

If the labels are not supposed to influence the preferred widget size
(which determines some popup sizes), the solution should be to set
their size policy to "Ignored".
The layout will just shrink or grow them to fill the available space.

M  +1    -5    libs/ui/widgets/kis_gradient_chooser.cc
M  +1    -1    libs/ui/widgets/kis_pattern_chooser.cc
M  +1    -1    libs/ui/widgets/kis_seexpr_script_chooser.cpp

https://invent.kde.org/graphics/krita/commit/0c0157b20aece3589e08b6e0d5d3a74b34ced860