removed tab will leave blank gap, following tab wont start animation to blank space
IssuepositionChangedAnimation_ (QAbstractAnimation) for tabs is kept between animations,
if endValue() of previously run animation match current targetPos - animation won't fire even though it should because current starting position might be different. This results in a gap which will stay until next notebook layout happen (where all tabs are moved again without animation).
There are also a lot of unnecessary Notebook layouts (like creating new tab results in 5x layouts of whole notebook) so that's something to fix too.
Fix
endValue for animation is now only checked for running animations (adf0458b8bcaa0d749f650e431822e1c91c316c5)
returning early when move is not needed also fixes the problem alone (72f48b9e80288be941aff503dea5eaf9fe033472)
Repro steps
Issue
positionChangedAnimation_
(QAbstractAnimation) for tabs is kept between animations, ifendValue()
of previously run animation match current targetPos - animation won't fire even though it should because current starting position might be different. This results in a gap which will stay until next notebook layout happen (where all tabs are moved again without animation). There are also a lot of unnecessary Notebook layouts (like creating new tab results in 5x layouts of whole notebook) so that's something to fix too.Fix
endValue
for animation is now only checked for running animations (adf0458b8bcaa0d749f650e431822e1c91c316c5)added some minor refactors too