Fixed vertical layout's item position when it doesn't require animation.
This commit is contained in:
parent
eaab3f9a8a
commit
adcc2f28a5
1 changed files with 4 additions and 0 deletions
|
|
@ -212,6 +212,10 @@ void VerticalLayoutReorder::finishCurrent() {
|
|||
}
|
||||
current.finalShift += sum;
|
||||
}
|
||||
if (!(current.finalShift + current.deltaShift)) {
|
||||
current.shift = 0;
|
||||
_layout->setVerticalShift(index, 0);
|
||||
}
|
||||
base::reorder(_entries, index, result);
|
||||
_layout->reorderRows(index, _currentDesiredIndex);
|
||||
for (auto i = 0, count = int(_entries.size()); i != count; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue