Bug 345142

Summary: Popup Palette presets are sometimes misaligned with cursor
Product: [Applications] krita Reporter: Chris Jones <chrjs>
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: freebox64
Priority: NOR    
Version First Reported In: 2.9   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Chris Jones 2015-03-14 12:24:34 UTC
If the Favourite presets number is set to 19, 25 or certain other amounts, the preset selection is out of alignment with the mouse cursor.  Adjacent presets can become highlighted when the mouse is positioned centrally over a thumbnail.  This makes selecting presets from the popup palette a hit-and-miss affair at some settings.

Reproducible: Always

Steps to Reproduce:
1.  In the General Preferences, set Favorite presets to 19 or 25
2.  Hover over thumbnails and notice that the mouse position is not aligned with the highlighted presets
Comment 1 mvowada 2015-03-14 13:24:02 UTC
Yes, this happens also on Ubuntu 14.04 Unity - Krita: 2.9.1 (git dd8c1dc).

The problem is evident enough when you set an "odd" and "large" number of "Favorite Presets" like 21,23,25... While there's no problems by setting an even number.
Comment 2 mvowada 2015-03-14 13:27:42 UTC
...and it happens with all tags, not only with "Favorite Presets".
Comment 3 Chris Jones 2015-03-14 13:33:29 UTC
Yes, I think the "Favorite Presets" settings should be called something else, like "Popup Palette Presets", but that's another story.
Comment 4 Sven Langkamp 2015-03-14 15:50:44 UTC
Git commit e2dc38f0bfa54c03c35994ec83a9c4d0eb8f832b by Sven Langkamp.
Committed on 14/03/2015 at 15:49.
Pushed by langkamp into branch 'calligra/2.9'.

fix rounding error in popup palette

M  +1    -1    krita/ui/kis_popup_palette.cpp

http://commits.kde.org/calligra/e2dc38f0bfa54c03c35994ec83a9c4d0eb8f832b