-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sticky_header: Fix hit-testing of header
Our `hitTestChildren` implementation wasn't using `hitTestBoxChild` correctly: it was attempting to do the job of `childMainAxisPosition`, but `hitTestBoxChild` calls `childMainAxisPosition` for itself. The implementation of `childMainAxisPosition` wasn't correct either. Fix both, and add some tests; sticky_header hadn't had any tests on its hit-test behavior. Fixes: #327
- Loading branch information
1 parent
04e78dc
commit f3de9a0
Showing
2 changed files
with
46 additions
and
12 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