Fixed vertical layout's item position when it doesn't require animation.

This commit is contained in:
23rd 2020-03-22 16:21:26 +03:00
parent eaab3f9a8a
commit adcc2f28a5

View file

@ -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) {