-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It turned out that the previous way to calculate the target position of the viewport for ListView.Contain case was half-broken anyway, which becomes rather apparent now that the work on navigating to replied-to events is ongoing. On the other hand, it looks like Qt has improved its positioning algorithm even further so even if one simply calls chatView.positionViewAtIndex() the positioning is already perfect or close to perfect most of the time. So the logic is now simplified; newly instantiated components don't have to ask scrollFinisher if they've been called out, the finisher simply tries to call positionViewAtIndex() several times at small intervals.
- Loading branch information
1 parent
f160358
commit f60546e
Showing
2 changed files
with
51 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters