| Summary: | Wrong spacing of list after editing the order using ListItemDragHandle | ||
|---|---|---|---|
| Product: | [Frameworks and Libraries] frameworks-kirigami | Reporter: | Till Schäfer <till2.schaefer> |
| Component: | general | Assignee: | Marco Martin <notmart> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | isma.af, plasma-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.77.0 | ||
| Target Milestone: | Not decided | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/frameworks/kirigami/commit/ccb063b0116639345bf7dcd285861a86f76973e1 | Version Fixed/Implemented In: | 5.78 |
| Sentry Crash Report: | |||
| Attachments: |
video showing the behavior
QML test case |
||
|
Description
Till Schäfer
2021-01-06 09:38:14 UTC
Created attachment 134605 [details]
video showing the behavior
Good catch! Reassigning it to Kirigami, since it can be reproduced in a test case. It only happens when the content height is smaller than the view height, so I'm guessing it's hitting some rearrange code for the scrolling case. Created attachment 134613 [details]
QML test case
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/202 Git commit ccb063b0116639345bf7dcd285861a86f76973e1 by Ismael Asensio. Committed on 06/01/2021 at 12:35. Pushed by iasensio into branch 'master'. [controls/ListItemDragHandle] Fix wrong arrangement on no-scrolling case Disable the scroll threshold when the list content does not need scrolling (the content is shorter than the list view). This fixes the items being wrongly re-arranged when the item is dragged near the list view bottom. FIXED-IN: 5.78 M +1 -1 src/controls/ListItemDragHandle.qml https://invent.kde.org/frameworks/kirigami/commit/ccb063b0116639345bf7dcd285861a86f76973e1 |